绑定小号时,返回详细的错误信息。

dev
曾超新 5 years ago
parent 5c26966f32
commit fecdb1080e
  1. 4
      frontend/controllers/PhoneController.php

@ -603,7 +603,6 @@ public function actionPushApi()
);
$assign_info = NetworkPhoneAssignT::findOne(['id'=>$assign_id]);
$sub_info = NetworkPhoneSubT::findOne(['id'=>$id]);
@ -633,7 +632,6 @@ public function actionPushApi()
$parmas['area_code']='';
$parmas['sign']=$sign;
// 3E8QV35pHjjev1713E61xV3tFq1N1E4W
$ch = curl_init();//初始化curl
curl_setopt($ch,CURLOPT_URL,$uri);//访问地址
@ -649,6 +647,8 @@ public function actionPushApi()
if($succ->code == 0){
$sub_info->bind_id = $succ->data->bind_id;
$sub_info->save();
} else {
$res .= print_r($parmas,true);
}
$result['msg'] = $res;

Loading…
Cancel
Save