|
@@ -29,6 +29,7 @@ use support\Log;
|
|
use support\Redis;
|
|
use support\Redis;
|
|
use support\Request;
|
|
use support\Request;
|
|
use support\Response;
|
|
use support\Response;
|
|
|
|
+use Tinywan\Jwt\JwtToken;
|
|
use Webman\Event\Event;
|
|
use Webman\Event\Event;
|
|
|
|
|
|
class GoodsController extends Curd
|
|
class GoodsController extends Curd
|
|
@@ -370,6 +371,8 @@ class GoodsController extends Curd
|
|
$account->member_account_surplus = $account->member_account_surplus - $params['order_amount_pay'];
|
|
$account->member_account_surplus = $account->member_account_surplus - $params['order_amount_pay'];
|
|
}
|
|
}
|
|
$account->member_account_expend = $account->member_account_expend + $params['order_amount_pay'];
|
|
$account->member_account_expend = $account->member_account_expend + $params['order_amount_pay'];
|
|
|
|
+ $account->member_account_update_user_id = JwtToken::getCurrentId();
|
|
|
|
+ $account->member_account_updatetimes = time();
|
|
$account->save();
|
|
$account->save();
|
|
if ($params['pay_constitute'] == 'N') {
|
|
if ($params['pay_constitute'] == 'N') {
|
|
$params['order_status_system'] = $systemStatus;
|
|
$params['order_status_system'] = $systemStatus;
|
|
@@ -395,6 +398,8 @@ class GoodsController extends Curd
|
|
$account->member_account_surplus = $account->member_account_surplus - $params['order_amount_pay'];
|
|
$account->member_account_surplus = $account->member_account_surplus - $params['order_amount_pay'];
|
|
}
|
|
}
|
|
$account->member_account_expend = $account->member_account_expend + $params['order_amount_pay'];
|
|
$account->member_account_expend = $account->member_account_expend + $params['order_amount_pay'];
|
|
|
|
+ $account->member_account_update_user_id = JwtToken::getCurrentId();
|
|
|
|
+ $account->member_account_updatetimes = time();
|
|
$account->save();
|
|
$account->save();
|
|
if ($params['pay_constitute'] == 'N') {
|
|
if ($params['pay_constitute'] == 'N') {
|
|
$params['order_status_system'] = $systemStatus;
|
|
$params['order_status_system'] = $systemStatus;
|
|
@@ -483,6 +488,8 @@ class GoodsController extends Curd
|
|
|
|
|
|
$account->member_account_surplus = $account->member_account_surplus - $params['order_amount_pay'];
|
|
$account->member_account_surplus = $account->member_account_surplus - $params['order_amount_pay'];
|
|
$account->member_account_expend = $account->member_account_expend + $params['order_amount_pay'];
|
|
$account->member_account_expend = $account->member_account_expend + $params['order_amount_pay'];
|
|
|
|
+ $account->member_account_update_user_id = JwtToken::getCurrentId();
|
|
|
|
+ $account->member_account_updatetimes = time();
|
|
$account->save();
|
|
$account->save();
|
|
} else if ($params['settlement_now'] == 'Y' && $params['pay_category'] == 'CARD') { // 储值卡账户
|
|
} else if ($params['settlement_now'] == 'Y' && $params['pay_category'] == 'CARD') { // 储值卡账户
|
|
$cardNbr = $params['card_nbr'];
|
|
$cardNbr = $params['card_nbr'];
|
|
@@ -509,6 +516,8 @@ class GoodsController extends Curd
|
|
$account->member_account_surplus = $account->member_account_surplus - $params['order_amount_pay'];
|
|
$account->member_account_surplus = $account->member_account_surplus - $params['order_amount_pay'];
|
|
}
|
|
}
|
|
$account->member_account_expend = $account->member_account_expend + $params['order_amount_pay'];
|
|
$account->member_account_expend = $account->member_account_expend + $params['order_amount_pay'];
|
|
|
|
+ $account->member_account_update_user_id = JwtToken::getCurrentId();
|
|
|
|
+ $account->member_account_updatetimes = time();
|
|
$account->save();
|
|
$account->save();
|
|
|
|
|
|
if ($params['pay_constitute'] == 'N') {
|
|
if ($params['pay_constitute'] == 'N') {
|
|
@@ -1097,6 +1106,8 @@ class GoodsController extends Curd
|
|
$account->member_account_surplus = $account->member_account_surplus - $params['order_amount_pay'];
|
|
$account->member_account_surplus = $account->member_account_surplus - $params['order_amount_pay'];
|
|
}
|
|
}
|
|
$account->member_account_expend = $account->member_account_expend + $params['order_amount_pay'];
|
|
$account->member_account_expend = $account->member_account_expend + $params['order_amount_pay'];
|
|
|
|
+ $account->member_account_update_user_id = JwtToken::getCurrentId();
|
|
|
|
+ $account->member_account_updatetimes = time();
|
|
$account->save();
|
|
$account->save();
|
|
if ($params['pay_constitute'] == 'N' && (!$account || $params['order_amount_pay'] <= $amount)) {
|
|
if ($params['pay_constitute'] == 'N' && (!$account || $params['order_amount_pay'] <= $amount)) {
|
|
$order->order_status_system = $systemStatus;
|
|
$order->order_status_system = $systemStatus;
|
|
@@ -1126,6 +1137,8 @@ class GoodsController extends Curd
|
|
$account->member_account_surplus = $account->member_account_surplus - $params['order_amount_pay'];
|
|
$account->member_account_surplus = $account->member_account_surplus - $params['order_amount_pay'];
|
|
}
|
|
}
|
|
$account->member_account_expend = $account->member_account_expend + $params['order_amount_pay'];
|
|
$account->member_account_expend = $account->member_account_expend + $params['order_amount_pay'];
|
|
|
|
+ $account->member_account_update_user_id = JwtToken::getCurrentId();
|
|
|
|
+ $account->member_account_updatetimes = time();
|
|
$account->save();
|
|
$account->save();
|
|
if ($params['pay_constitute'] == 'N' && (!$account || $params['order_amount_pay'] <= $amount)) {
|
|
if ($params['pay_constitute'] == 'N' && (!$account || $params['order_amount_pay'] <= $amount)) {
|
|
$order->order_status_system = $systemStatus;
|
|
$order->order_status_system = $systemStatus;
|
|
@@ -1223,6 +1236,8 @@ class GoodsController extends Curd
|
|
}
|
|
}
|
|
$account->member_account_surplus = $account->member_account_surplus - $params['order_amount_pay'];
|
|
$account->member_account_surplus = $account->member_account_surplus - $params['order_amount_pay'];
|
|
$account->member_account_expend = $account->member_account_expend + $params['order_amount_pay'];
|
|
$account->member_account_expend = $account->member_account_expend + $params['order_amount_pay'];
|
|
|
|
+ $account->member_account_update_user_id = JwtToken::getCurrentId();
|
|
|
|
+ $account->member_account_updatetimes = time();
|
|
$account->save();
|
|
$account->save();
|
|
} else if ($params['pay_category'] == 'CARD') { // 储值卡账户
|
|
} else if ($params['pay_category'] == 'CARD') { // 储值卡账户
|
|
$cardNbr = $params['card_nbr'];
|
|
$cardNbr = $params['card_nbr'];
|
|
@@ -1252,6 +1267,8 @@ class GoodsController extends Curd
|
|
$account->member_account_surplus = $account->member_account_surplus - $params['order_amount_pay'];
|
|
$account->member_account_surplus = $account->member_account_surplus - $params['order_amount_pay'];
|
|
}
|
|
}
|
|
$account->member_account_expend = $account->member_account_expend + $params['order_amount_pay'];
|
|
$account->member_account_expend = $account->member_account_expend + $params['order_amount_pay'];
|
|
|
|
+ $account->member_account_update_user_id = JwtToken::getCurrentId();
|
|
|
|
+ $account->member_account_updatetimes = time();
|
|
$account->save();
|
|
$account->save();
|
|
if ($params['pay_constitute'] == 'N' && (!$account || $params['order_amount_pay'] <= $amount)) {
|
|
if ($params['pay_constitute'] == 'N' && (!$account || $params['order_amount_pay'] <= $amount)) {
|
|
$order->order_status_system = $systemStatus;
|
|
$order->order_status_system = $systemStatus;
|
|
@@ -1728,6 +1745,8 @@ class GoodsController extends Curd
|
|
} else {
|
|
} else {
|
|
$account->member_account_surplus = $account->member_account_surplus - $item['amount'];
|
|
$account->member_account_surplus = $account->member_account_surplus - $item['amount'];
|
|
}
|
|
}
|
|
|
|
+ $account->member_account_update_user_id = JwtToken::getCurrentId();
|
|
|
|
+ $account->member_account_updatetimes = time();
|
|
$account->save();
|
|
$account->save();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -1904,6 +1923,8 @@ class GoodsController extends Curd
|
|
$account->member_account_surplus = $account->member_account_surplus - $amount;
|
|
$account->member_account_surplus = $account->member_account_surplus - $amount;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ $account->member_account_update_user_id = JwtToken::getCurrentId();
|
|
|
|
+ $account->member_account_updatetimes = time();
|
|
$account->save();
|
|
$account->save();
|
|
} catch (\Exception $e) {
|
|
} catch (\Exception $e) {
|
|
_syslog("下单扣款", "扣款失败");
|
|
_syslog("下单扣款", "扣款失败");
|