Explorar o código

添加派单一次日志

wangzq %!s(int64=3) %!d(string=hai) anos
pai
achega
d288ed6396
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  1. 7 1
      app/Libs/Helpers.php

+ 7 - 1
app/Libs/Helpers.php

@@ -858,6 +858,12 @@ if (!function_exists("check_qapp_send_order_id)")){
                 Redis::hSet("qapp:send_order:distribution_channel",$sendOrderId,$sendOrderChannelId);
             }
         }
-        return  trim($channelId) === trim($sendOrderChannelId);
+
+        if (trim($channelId) !== trim($sendOrderChannelId)){
+            myLog("QuickAppSendOrderError")->info("派单渠道和包名不匹配: send_order_id = {$sendOrderId};sned_order_id_channel_id= {$sendOrderChannelId};channel_id= {$channelId} ");
+            return  false;
+        }
+
+        return true;
     }
 }