修复子号码显示错误BUG

dev
曾超新 5 years ago
parent ad88f113b4
commit 06459be585
  1. 3
      frontend/controllers/PhoneCenterController.php
  2. 4
      frontend/views/phone-center/sub-index.php

@ -256,8 +256,7 @@ public function actionDownload(){
$id = $request->get('phone_id',0);
$assign_info = NetworkPhoneAssignT::findOne($id);
var_dump($assign_info);
exit;
return $this->render('sub-index',[
'assign_info' => $assign_info
]);

@ -59,10 +59,10 @@ use \common\libs\MyLib;
}
function create() {
title = '新增小号';
layer_show(title, '/phone-center/sub-edit?assign_id=<?=$assign_info-id?>');
layer_show(title, '/phone-center/sub-edit?assign_id=<?=$assign_info->id?>');
}
function link(id) {
$.get('/phone/ax-init',{id:id,assign_id:<?=$assign_info-id?>},function(obj){
$.get('/phone/ax-init',{id:id,assign_id:<?=$assign_info->id?>},function(obj){
parent.layer.msg(obj.msg);
},'json');

Loading…
Cancel
Save