Browse Source

企微加密corpid获取

houxiaohua 2 years ago
parent
commit
0186508e34
1 changed files with 3 additions and 1 deletions
  1. 3 1
      app/Console/Commands/OpenCorpidGet.php

+ 3 - 1
app/Console/Commands/OpenCorpidGet.php

@@ -53,7 +53,9 @@ class OpenCorpidGet extends Command
53 53
                     $data = CorpAuthService::getOpenCorpid($corpid, $this->suiteId, $this->suiteSecret);
54 54
                     $openCorpid = $data['open_corpid'] ?? '';
55 55
                     if((isset($data['errcode']) && $data['errcode']) || !$openCorpid) {       // 响应异常
56
-                        EmailQueue::rPush('更新企微的加密corpid错误', $data['errmsg'] ?? '未知', ['xiaohua.hou@kuxuan-inc.com'], '猎羽');
56
+                        if(!in_array($data['errcode'], [2000002, 48001])) {
57
+                            EmailQueue::rPush('更新企微的加密corpid错误', $data['errmsg'] ?? '未知', ['xiaohua.hou@kuxuan-inc.com'], '猎羽');
58
+                        }
57 59
                         Log::logError('更新企微的加密corpid错误', [
58 60
                             'param' => $info,
59 61
                             'response' => $data