曾超新 5 years ago
parent 6409db6250
commit 0cf4dc87ce
  1. 7
      frontend/controllers/PhoneCenterController.php

@ -320,7 +320,6 @@ public function actionDownload(){
$phone = $request->post('phone',''); $phone = $request->post('phone','');
$is_double = $request->post('is_double',0); $is_double = $request->post('is_double',0);
if($user_id == 0) { if($user_id == 0) {
$result['msg'] = '请输入人员名称!'; $result['msg'] = '请输入人员名称!';
return $result; return $result;
@ -331,10 +330,7 @@ public function actionDownload(){
return $result; return $result;
} }
$tran = NetworkPhoneAssignT::getDb()->beginTransaction(); $tran = NetworkPhoneAssignT::getDb()->beginTransaction();
try { try {
$row = null; $row = null;
if($id > 0) { if($id > 0) {
@ -377,6 +373,9 @@ public function actionDownload(){
'op' => 'add', 'op' => 'add',
'phone' => $phone 'phone' => $phone
]; ];
echo $url."||";
var_dump($params);
exit;
$client = new Client(); $client = new Client();
$res = $client->request('POST', $url, [ $res = $client->request('POST', $url, [
'form_params' => $params, 'form_params' => $params,

Loading…
Cancel
Save