Răsfoiți Sursa

增加打印日志

林琦海 5 ani în urmă
părinte
comite
93e4d1fe3c
1 a modificat fișierele cu 5 adăugiri și 1 ștergeri
  1. 5 1
      biz-ghs/ws/services/WsService.php

+ 5 - 1
biz-ghs/ws/services/WsService.php

@@ -11,8 +11,8 @@ class WsService
     public static function arrivalNotice($adminId,$money,$payWay='')
     {
         $msg = '微信到账'.$money;
-
         $audio = baiduAip::transfer($msg,4,0);
+        Yii::info("触发到账通知:".$adminId. " ".$money);
         if(!is_array($audio)){
             try{
                 $audio = base64_encode($audio);
@@ -21,6 +21,9 @@ class WsService
             }catch (\Exception $exception){
                 Yii::warning("ws arrivalNotice error ". $exception->getMessage());
             }
+        }else{
+
+            Yii::warning("到账通知 语音获取失败" .json_encode($audio));
         }
 
 
@@ -36,6 +39,7 @@ class WsService
             'type'=>'new_order',
             'url'=>$url,
         ];
+        Yii::info("触发订单通知:".$shopAdminId);
         try{
             Gateway::sendToUid($shopAdminId, json_encode($data));
         }catch (\Exception $exception){