1.代码如下
//解析保存消息--订单取消
private function saveMsgDataCancel($data,$tag)
{
$s_ids = $data['s_ids'];
$ids = json_encode($s_ids,JSON_FORCE_OBJECT); //数组转string 子订单
$msg = json_encode($data,JSON_FORCE_OBJECT); //数组转string
$cancel_time = $this->formatDateTime($data['cancel_time']); //数值转string
$res = ['biz' => $data['biz'], 'cancel_time' =>$cancel_time,'order_status'=>$data['order_status'] ,
'issend'=>0, 'order_type'=>$data['order_type'], 'p_id'=>$data['p_id'], 's_ids'=>$ids,
'shop_id'=>$data['shop_id'],'msg'=>$msg,'tag'=>$tag, 'cancel_reason'=>$data['cancel_reason'], ]; //字段名称区分大小写
Db::startTrans();
try{
Db::tabl
|