|
|
|
@ -4544,7 +4544,8 @@ class CarController extends BaseController |
|
|
|
|
$MessageContent = str_replace("\t","",$MessageContent); |
|
|
|
|
|
|
|
|
|
$url = 'https://sms.yunpian.com/v2/sms/single_send.json'; |
|
|
|
|
$params['apikey'] = '453067dc4b9eb0dc0c448674d79e85aa'; |
|
|
|
|
$url = 'https://www.banmacar.com/api/single_send'; |
|
|
|
|
$params['token'] = '84c5722fd1455582c53b7195ccef44c2'; |
|
|
|
|
$params['mobile'] = $UserNumber; |
|
|
|
|
$params['text'] = $MessageContent; |
|
|
|
|
$post_url = http_build_query($params); |
|
|
|
@ -4552,13 +4553,13 @@ class CarController extends BaseController |
|
|
|
|
$msg = MyLib::Post($post_url,$url); |
|
|
|
|
// $msg = mb_convert_encoding($msg,'UTF8','GBK'); |
|
|
|
|
// parse_str($msg,$obj); |
|
|
|
|
$obj = json_decode($msg); |
|
|
|
|
$obj = json_decode($msg,true); |
|
|
|
|
$result = array(); |
|
|
|
|
// $result['success'] = true; |
|
|
|
|
if($obj->code == 0){ |
|
|
|
|
$result['msg'] = $obj->msg; |
|
|
|
|
if($obj['success']) { |
|
|
|
|
$result['msg'] = $obj['msg']; |
|
|
|
|
}else{ |
|
|
|
|
$result['msg'] = $obj->msg.'('.$obj->detail.')'; |
|
|
|
|
$result['msg'] = $obj['msg']; |
|
|
|
|
} |
|
|
|
|
return $result; |
|
|
|
|
} |
|
|
|
|