$msg['order_type'],'order_code'=>$msg['order_code']])->column('action_uid,action_name'); if(!empty($mguid)){ $data=[]; foreach ($mguid as $value){ if($value["action_uid"]==$msg['action_uid']){ continue; } $temp=[]; $temp['content']=$content; $temp['orderCode']=$msg['order_code']; $temp['order_type']=$msg['order_type']; $temp['order_status']=$msg['order_status']; $temp['order_id']=$msg['order_id']; $temp['uid']=$value['action_uid'];//所有人,缺申请人和操作人 $temp['uname']=$value['action_name']; $temp['is_read']=0; $temp['addtime']=date("Y-m-d H:i:s"); $temp['updatetime']=date("Y-m-d H:i:s"); $data[]=$temp; } self::insertAll($data); } } }