Browse Source

映客平台订单接入

shensong00 1 year ago
parent
commit
edbb3647f1

+ 7 - 2
app/Console/Commands/RegularlyRemindUserActiveStatus.php

@@ -122,8 +122,13 @@ class RegularlyRemindUserActiveStatus extends Command
122 122
                         'user_id' => $remindUserArr,
123 123
                         'responseData' => $responseData
124 124
                     ];
125
-                    EmailQueue::rPush('通知客服有许可临期失败', json_encode($logData, JSON_UNESCAPED_UNICODE)
126
-                        , ['song.shen@kuxuan-inc.com'], '通知客服有许可临期失败');
125
+
126
+                    # 被通知的客服没有许可
127
+                    if($responseData['errcode'] != 81013) {
128
+                        EmailQueue::rPush('通知客服有许可临期失败', json_encode($logData, JSON_UNESCAPED_UNICODE)
129
+                            , ['song.shen@kuxuan-inc.com'], '通知客服有许可临期失败');
130
+                    }
131
+
127 132
                     Log::logError('通知客服有许可临期失败', $logData, 'RegularlyRemindUserActiveStatus');
128 133
 
129 134
                     return false;

+ 1 - 1
app/Models/DjOrder.php

@@ -812,7 +812,7 @@ class DjOrder extends Model
812 812
         return $res->id ?? 0;
813 813
     }
814 814
 
815
-    public static function saveYingKeOrder($order) {
815
+    public static function saveYingKeOrder($data) {
816 816
         if(empty($data)) {
817 817
             return 0;
818 818
         }