修改收银台下单后的返还金逻辑
This commit is contained in:
parent
7dc73909ba
commit
36ff55caf1
@ -72,7 +72,7 @@ class UserLogic extends BaseLogic
|
||||
{
|
||||
$data = User::with(['userShip'])->where('id',$uid)
|
||||
->field('id,avatar,real_name,nickname,account,mobile,sex,login_ip,now_money,total_recharge_amount,user_ship
|
||||
,purchase_funds,integral')
|
||||
,purchase_funds,integral,pay_password')
|
||||
->find();
|
||||
//判断是不是员工
|
||||
if($data){
|
||||
|
@ -127,9 +127,9 @@ class PayNotifyLogic extends BaseLogic
|
||||
|
||||
$capitalFlowDao = new CapitalFlowLogic($user);
|
||||
$capitalFlowDao->userExpense('user_order_purchase_pay', 'order', $order['id'], $order['pay_price'],'',1,$order['store_id']);
|
||||
if ($user['user_ship'] == 1) {
|
||||
self::dealVipAmount($order, PayEnum::PURCHASE_FUNDS);
|
||||
}
|
||||
// if ($user['user_ship'] == 1) {
|
||||
// self::dealVipAmount($order, PayEnum::PURCHASE_FUNDS);
|
||||
// }
|
||||
|
||||
if($extra && $extra['store_id']){
|
||||
$params = [
|
||||
@ -140,9 +140,9 @@ class PayNotifyLogic extends BaseLogic
|
||||
OrderLogic::writeOff($params);
|
||||
}
|
||||
self::dealProductLog($order);
|
||||
if($order['shipping_type'] == 3){
|
||||
self::descStock($order['id']);
|
||||
}
|
||||
// if($order['shipping_type'] == 3){
|
||||
// self::descStock($order['id']);
|
||||
// }
|
||||
|
||||
// self::afterPay($order);
|
||||
// Redis::send('push-platform-print', ['id' => $order['id']], 60);
|
||||
|
Loading…
x
Reference in New Issue
Block a user