|
|
|
@ -308,8 +308,12 @@ class PromoteCompanyController extends ThinkController
|
|
|
|
|
if(!isset($_REQUEST['ids'])) $this->error("参数错误");
|
|
|
|
|
$ids = $_REQUEST['ids'];
|
|
|
|
|
$dbres = M("PromoteCompanyVerify", 'tab_')->field("id,verify_status,verify_log")->where("id in ({$ids})")->select();
|
|
|
|
|
foreach($dbres as $k=>&$v){
|
|
|
|
|
if($v['verify_status'] != 0) continue;
|
|
|
|
|
|
|
|
|
|
$service = new PromoteCompanyService();
|
|
|
|
|
foreach($dbres as $k=>$v){
|
|
|
|
|
if($v['verify_status'] != 0) {
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
$v['verify_log'] = json_decode($v['verify_log'],true);
|
|
|
|
|
$v['verify_log']['market_user']=$this->admininfo["username"];
|
|
|
|
|
$v['verify_log']['market_time']=date("Y-m-d H:i:s");
|
|
|
|
@ -317,6 +321,11 @@ class PromoteCompanyController extends ThinkController
|
|
|
|
|
$v['verify_status']=1;
|
|
|
|
|
M("PromoteCompanyVerify", 'tab_')->save($v);
|
|
|
|
|
addOperationLog(['op_type'=>1,'key'=>$v['id'],"op_name"=>"市场部审核",'url'=>U('index')]);
|
|
|
|
|
|
|
|
|
|
$company = json_decode($v['company_info'], true);
|
|
|
|
|
if (in_array($company['company_belong'], [1, 2])) {
|
|
|
|
|
$service->adminAgree($v, true);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$this->ajaxReturn(array(
|
|
|
|
|
'status' => 1,
|
|
|
|
|