继续浏览精彩内容
慕课网APP
程序员的梦工厂
打开
继续
感谢您的支持,我会继续努力的
赞赏金额会直接到老师账户
将二维码发送给自己后长按识别
微信支付
支付宝支付

控制器ajax返回数组里面带一个变量

傲慢的飞行员3734838
关注TA
已关注
手记 9
粉丝 2
获赞 40

if(!empty($nameinfo)){
$singles['project_id'] = $pid;
$singles['techo_id'] = $nameinfo['user_id'];
$singles['project_part'] = $part;
$singles['project_price'] = 8000;
$singles['peoject_limit'] = 20;
$singles['tech_time'] = date('Y-m-d');
$singles['project_states'] = 2;
$singles['tec_choose'] = 2;
$res_add = $tecbids->add($singles);
$res_change = $tecbids->where(array('project_id'=>$pid,'project_part'=>$part,'project_states'=>2))->setField('tec_choose',3);
if($res_add){
$info = array('status'=>1,'info'=>'替换美工'.$res_change.'成功');
}
}
}
将返回数据分为3个字段去拼接起来

打开App,阅读手记
1人推荐
发表评论
随时随地看视频慕课网APP