Przeglądaj źródła

商户后台-退款放开退还复购金逻辑

sunxbiao 1 rok temu
rodzic
commit
ec65332a03

+ 2 - 2
app/controller/merchant/store/order/RefundOrder.php

@@ -286,7 +286,7 @@ class RefundOrder extends BaseController
286
                 } else if ($array_fzone_paytype['type'] == 'c1') {
286
                 } else if ($array_fzone_paytype['type'] == 'c1') {
287
                     // {"checked":true,"note":"复购金","other":1.5,"price":8.5,"total":0.0,"type":"c1","vr":"48799.82"}
287
                     // {"checked":true,"note":"复购金","other":1.5,"price":8.5,"total":0.0,"type":"c1","vr":"48799.82"}
288
                     $vrpri = Db::name("user")->where("uid", $group_order_map['uid'])->value('fugou');
288
                     $vrpri = Db::name("user")->where("uid", $group_order_map['uid'])->value('fugou');
289
-                    $vrpri += $array_fzone_paytype['other'];
289
+                    $vrpri += $array_fzone_paytype['price'];
290
                     Db::name("user")->where("uid", $group_order_map['uid'])->update(['fugou' => $vrpri]);
290
                     Db::name("user")->where("uid", $group_order_map['uid'])->update(['fugou' => $vrpri]);
291
                     //支出账号存到log日志
291
                     //支出账号存到log日志
292
                     $log_data = [
292
                     $log_data = [
@@ -297,7 +297,7 @@ class RefundOrder extends BaseController
297
                         'order_id' => $store_order_info['order_id'],
297
                         'order_id' => $store_order_info['order_id'],
298
                         'surplus' => $vrpri,
298
                         'surplus' => $vrpri,
299
                         'order_type' => 0,
299
                         'order_type' => 0,
300
-                        'type' => 2,
300
+                        'type' => 1,
301
                         'addtime' => time()
301
                         'addtime' => time()
302
                     ];
302
                     ];
303
                     Db::name("user_sign_fugou")->insert($log_data);
303
                     Db::name("user_sign_fugou")->insert($log_data);