Browse Source

监控异常运费订单

shensong00 4 years ago
parent
commit
8729e3b5f5
1 changed files with 3 additions and 1 deletions
  1. 3 1
      app/Console/Commands/MonitorEmptyFreightCost.php

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

@@ -74,7 +74,7 @@ class MonitorEmptyFreightCost extends Command {
74 74
 //        }
75 75
     }
76 76
     private static function send($ch,$data){
77
-        curl_setopt ($ch, CURLOPT_URL, 'https://sms.yunpian.com/v2/sms/single_send.json');
77
+        curl_setopt ($ch, CURLOPT_URL, 'https://sms.yunpian.com/v2/sms/tpl_single_send.json');
78 78
         curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
79 79
         $result = curl_exec($ch);
80 80
         $error = curl_error($ch);
@@ -89,6 +89,8 @@ class MonitorEmptyFreightCost extends Command {
89 89
         $json_data = self::send($ch,$data);
90 90
         $array = json_decode($json_data,true);
91 91
         curl_close($ch);
92
+        $json_data = iconv('utf-8','gbk',$json_data);
93
+        print_r($json_data);
92 94
         return $array;
93 95
     }
94 96