|
@@ -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
|
|