zhanglinxin il y a 1 an
Parent
commit
2c44034a38
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      application/api/controller/Approveinfo.php

+ 3 - 3
application/api/controller/Approveinfo.php

@@ -96,7 +96,7 @@ class Approveinfo extends Base
     {
         // {"way":"create","id": "","module": "1","reason": "测试","type": "1","desc": "","start_time": "","end_time": "","document": "","images": "","remark": "","total_amount": "1000","pay_type": "1","word_size": "","number": "","is_who": "","start_am": "","end_am": "","time": "","reach_address": "","end_address": "","scope": "","legal_opinion": "","founder": "","serial_number": "","apply_date": "","degree": "","department": "","department_sign": "","approve_user": "1925696723824730358","copy_user": "","apply_goods": [{"id": "1","goods_category_first": "1","goods_category_id": "3","goods_no": "100001","goods_name": "医疗口罩一次性","goods_brand": "一次性口罩","goods_stock": [{"id": "1","name": "均码,白色","price": "1","stock": "110"},{"id": "2","name": "均码,蓝色","price": "1","stock": "100"},{"id": "19","name": "均码,红色","price": "1","stock": "120"}]},{"id": "2","goods_category_first": "1","goods_category_id": "3","goods_no": "100002","goods_name": "84消毒液","goods_brand": "安其生","goods_stock": [{"id": "3","name": "380ml,低浓度","price": "1","stock": "110"},{"id": "4","name": "380ml,高浓度","price": "1","stock": "100"}]},{"id": "","goods_category_first": "1","goods_category_id": "3","goods_no": "100003","goods_name": "一次性手套丁腈橡胶","goods_brand": "万力","goods_stock": [{"name": "白色","price": "0.2","stock": "110"},{"name": "蓝色","price": "0.2","stock": "100"}]}],"peer_user": [{"is_who": "","user_id": "","name": "","desc": ""}]}
         $way = input('way');
-        $id = input('id');
+        $id = input('id',0);
         $module = input('module');
         $reason = input('reason');
         $type = input('type');
@@ -109,9 +109,9 @@ class Approveinfo extends Base
         $total_amount = input('total_amount');
         $pay_type = input('pay_type');
         $word_size = input('word_size');
-        $apply_id = input('apply_id');
+        $apply_id = input('apply_id',0);
         $number = input('number');
-        $is_who = input('is_who');
+        $is_who = input('is_who',0);
         $start_am = input('start_am');
         $end_am = input('end_am');
         $time = input('time');