修改积分支付和下单类型

main
ztt 10 months ago
parent 4b6a78bfa6
commit 8597a8b2ba
  1. 10
      addons/shopro/job/trade/OrderPaid.php
  2. 3
      application/admin/model/shopro/user/WalletLog.php

@ -42,11 +42,11 @@ class OrderPaid extends BaseJob
$gift = (isset($rule['gift']) && $rule['gift'] > 0) ? $rule['gift'] : 0;
if ($money > 0) {
// 增加余额
WalletService::change($user, 'money', $money, 'order_recharge', [
'order_id' => $order->id,
'order_sn' => $order->order_sn,
'order_type' => 'trade_order',
]);
// WalletService::change($user, 'money', $money, 'order_recharge', [
// 'order_id' => $order->id,
// 'order_sn' => $order->order_sn,
// 'order_type' => 'trade_order',
// ]);
// 增加积分
WalletService::change($user, 'score', $money, 'order_recharge', [

@ -31,13 +31,14 @@ class WalletLog extends Common
'activity_gift' => '活动-赠送积分',
'score_shop_pay' => '积分商城-积分支付',
// 'order_pay' => '商城订单-积分抵扣',
'order_pay' => '个人下单',
'order_pay' => '积分支付',
'order_refund' => '订单退款-退还积分',
'admin_recharge' => '后台-积分充值',
'recharge_gift' => '线上充值-赠送积分',
'user_recharge' => '积分充值',
'user_exchange' => '积分转让',
'team_order' => '团队下单',
'order_recharge' => '积分充值',
],
'money' => [
'order_pay' => '商城订单-余额支付',

Loading…
Cancel
Save