xieruidong 2 years ago
parent
commit
7ea792e7ec
2 changed files with 6 additions and 5 deletions
  1. 3 2
      application/api/controller/mall/Orders.php
  2. 3 3
      public/api.html

+ 3 - 2
application/api/controller/mall/Orders.php

@@ -308,10 +308,11 @@ class Orders extends Api
         }else{
             $data['refund_by']=null;
         }
-        if($config['refund_type']==Refund::REFUND_TYPE_HHBX){
+        if($data['refund_type']==Refund::REFUND_TYPE_HHBX){
             $save['amount']=0;
             $save['amount_install']=0;
-        }else{
+        }
+        else{
             $save['amount']=bcmul($data['num'],$config['amount_single']);
             $save['amount_install']=bcmul($data['num'],$config['amount_install_single']);
         }

+ 3 - 3
public/api.html

@@ -11835,7 +11835,7 @@
                                                         <td>refund_type</td>
                                                         <td>string</td>
                                                         <td>是</td>
-                                                        <td>1退款2退款退货3仅退货4取消订单5换货保修</td>
+                                                        <td>1取消订单2退款退货3仅退货4取消订单5换货保修</td>
                                                     </tr>
                                                                                                         <tr>
                                                         <td>num</td>
@@ -11909,7 +11909,7 @@
                                                     <form enctype="application/x-www-form-urlencoded" role="form" action="/api/mall.orders/refund" method="get" name="form52" id="form52">
                                                                                                                 <div class="form-group">
                                                             <label class="control-label" for="refund_type">refund_type</label>
-                                                            <input type="string" class="form-control input-sm" id="refund_type" required placeholder="1退款2退款退货3仅退货4取消订单5换货保修" name="refund_type">
+                                                            <input type="string" class="form-control input-sm" id="refund_type" required placeholder="1取消订单2退款退货3仅退货4取消订单5换货保修" name="refund_type">
                                                         </div>
                                                                                                                 <div class="form-group">
                                                             <label class="control-label" for="num">num</label>
@@ -19261,7 +19261,7 @@
 
                 </div>
                 <div class="col-md-6" align="right">
-                    Generated on 2022-12-10 16:44:23 <a href="./" target="_blank">苏州屏酷有限公司</a>
+                    Generated on 2022-12-10 17:00:13 <a href="./" target="_blank">苏州屏酷有限公司</a>
                 </div>
             </div>