|
|
@@ -283,26 +283,25 @@ class RefundOrder extends BaseController
|
|
283
|
283
|
];
|
|
284
|
284
|
Db::name('user_sign_vr')->insert($insertdata);
|
|
285
|
285
|
|
|
|
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"}
|
|
|
288
|
+ $vrpri = Db::name("user")->where("uid", $group_order_map['uid'])->value('fugou');
|
|
|
289
|
+ $vrpri += $array_fzone_paytype['other'];
|
|
|
290
|
+ Db::name("user")->where("uid", $group_order_map['uid'])->update(['fugou' => $vrpri]);
|
|
|
291
|
+ //支出账号存到log日志
|
|
|
292
|
+ $log_data = [
|
|
|
293
|
+ 'uid' => $store_order_info['uid'],
|
|
|
294
|
+ 'number' => $array_fzone_paytype['price'],
|
|
|
295
|
+ 'mark' => "复购区商品申请退款退回复购金:" . $array_fzone_paytype['price'],
|
|
|
296
|
+ 'desc' => "复购金",
|
|
|
297
|
+ 'order_id' => $store_order_info['order_id'],
|
|
|
298
|
+ 'surplus' => $vrpri,
|
|
|
299
|
+ 'order_type' => 0,
|
|
|
300
|
+ 'type' => 2,
|
|
|
301
|
+ 'addtime' => time()
|
|
|
302
|
+ ];
|
|
|
303
|
+ Db::name("user_sign_fugou")->insert($log_data);
|
|
286
|
304
|
}
|
|
287
|
|
- // else if ($array_fzone_paytype['type'] == 'c1') {
|
|
288
|
|
- // // {"checked":true,"note":"复购金","other":1.5,"price":8.5,"total":0.0,"type":"c1","vr":"48799.82"}
|
|
289
|
|
- // $vrpri = Db::name("user")->where("uid", $group_order_map['uid'])->value('fugou');
|
|
290
|
|
- // $vrpri += $array_fzone_paytype['other'];
|
|
291
|
|
- // Db::name("user")->where("uid", $group_order_map['uid'])->update(['fugou' => $vrpri]);
|
|
292
|
|
- // //支出账号存到log日志
|
|
293
|
|
- // $log_data = [
|
|
294
|
|
- // 'uid' => $store_order_info['uid'],
|
|
295
|
|
- // 'number' => $array_fzone_paytype['price'],
|
|
296
|
|
- // 'mark' => "复购区商品申请退款退回复购金:" . $array_fzone_paytype['price'],
|
|
297
|
|
- // 'desc' => "复购金",
|
|
298
|
|
- // 'order_id' => $store_order_info['order_id'],
|
|
299
|
|
- // 'surplus' => $vrpri,
|
|
300
|
|
- // 'order_type' => 0,
|
|
301
|
|
- // 'type' => 2,
|
|
302
|
|
- // 'addtime' => time()
|
|
303
|
|
- // ];
|
|
304
|
|
- // $user_res_log = Db::name("user_sign_fugou")->insert($log_data);
|
|
305
|
|
- // }
|
|
306
|
305
|
}
|
|
307
|
306
|
|
|
308
|
307
|
// 取消 订单所发放的福利
|