xieruidong 2 年之前
父节点
当前提交
cdf305d180
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      app/data/controller/api/business/Purchase.php

+ 2 - 0
app/data/controller/api/business/Purchase.php

@@ -43,6 +43,8 @@ class Purchase extends Controller
      * @return void
      */
     public function purchase_order(\think\Validate $validate,Request $request){
+        $request->offsetSet('images',json_decode($request['images'])?:[]);
+        $request->offsetSet('item',json_decode($request['item'])?:[]);
         $admin_id = $this->uuid();
         $data=$this->_vali([
             'real_name.require'=>'联系人不能为空',