修改校验

This commit is contained in:
liu 2024-06-26 19:58:06 +08:00
parent 5a4bd318d2
commit 2c461bf4e6
2 changed files with 2 additions and 2 deletions

View File

@ -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]);

View File

@ -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'],