bsp; $return = file_get_contents($smsapi_senturl.http_build_query($data));
$statusStr = array(
"0" => "短信发送成功"
);
//$arr = explode('#', $return);
$send_time = $send_time ? $send_time : time();
//增加到本地数据库
$row = array('mer_id' => $mer_id, 'uid' => $uid, 'store_id' => $store_id, 'time' => $send_time, 'phone' => $mobile, 'text' => $content, 'status' => $arr[0], 'type' => $type, 'sendto' => $sendto);
D('Sms_record')->add($row);
return $statusStr[$return];
} else return false;
exit;
if (C('sms_key') != '' && C('sms_key') != 'key') {
$companyid=0;
if(!(strpos($token,'_') === FALSE)) {
$sarr = explode('_',$token);
$token = $sarr[0];
&