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个字段去拼接起来