修改校验
This commit is contained in:
parent
5a4bd318d2
commit
2c461bf4e6
@ -438,7 +438,7 @@ class OrderLogic extends BaseLogic
|
||||
PayNotifyLogic::afterPay($order);
|
||||
PayNotifyLogic::descStock($order['id']);
|
||||
|
||||
if($order['uid'] && $order['total_price'] > 500){
|
||||
if($order['uid'] && $order['total_price'] >= 500){
|
||||
$user_number = bcmul($order['pay_price'], '0.10', 2);
|
||||
User::where('id', $order['uid'])->inc('integral', $user_number)->update();
|
||||
UserSign::where(['uid' => $order['uid'],'order_id' => $order['order_id']])->update(['status'=>1]);
|
||||
|
@ -393,7 +393,7 @@ class PayNotifyLogic extends BaseLogic
|
||||
public static function addUserSing($order)
|
||||
{
|
||||
$user_sing = new UserSign();
|
||||
if ($order['uid'] > 0 && $order['total_price'] > 500) {
|
||||
if ($order['uid'] > 0 && $order['total_price'] >= 500) {
|
||||
$user_number = bcmul($order['pay_price'], '0.10', 2);
|
||||
$sing = [
|
||||
'uid' => $order['uid'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user