wupengfei 1 년 전
부모
커밋
b255863167
3개의 변경된 파일4개의 추가작업 그리고 6개의 파일을 삭제
  1. 1 1
      .idea/workspace.xml
  2. 3 4
      application/synth/controller/BillApply.php
  3. 0 1
      application/synth/view/bill_apply/form.html

+ 1 - 1
.idea/workspace.xml

@@ -328,7 +328,7 @@
       <workItem from="1684543423796" duration="10653000" />
       <workItem from="1684716593546" duration="15730000" />
       <workItem from="1684743465298" duration="6526000" />
-      <workItem from="1684802887863" duration="11299000" />
+      <workItem from="1684802887863" duration="11406000" />
     </task>
     <servers />
   </component>

+ 3 - 4
application/synth/controller/BillApply.php

@@ -138,17 +138,16 @@ class BillApply extends Controller
             $vo['express_company_title'] = $express['express_title'];
             $vo['express_send_at'] = empty($order['express_send_at']) ? date('Y-m-d H:i:s') : $order['express_send_at'];
             $vo['express_state'] = '1';
+            $vo['bill_time'] = date("Y-m-d H:i:s");
         }
     }
 
     public function billImageSave()
     {
-        if($this->request->isPost())
-        {
+        if($this->request->isPost()) {
             $id  = input('post.id');
             $bill_img  = input('post.bill_img');
-            var_dump($id,$bill_img);
-            \app\common\model\BillApply::where('id',$id)->update(['bill_img'=>$bill_img]);
+            \app\common\model\BillApply::where('id',$id)->update(['bill_img'=>$bill_img,'bill_time'=>date("Y-m-d H:i:s")]);
             $this->success('保存成功');
         }
     }

+ 0 - 1
application/synth/view/bill_apply/form.html

@@ -128,7 +128,6 @@
                         }
                     });
 
-
                 }
                 layer.msg(res.msg);
             }