From 0db6af67830015685026eed681f712f579ad4d48 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Sat, 20 Jul 2024 17:15:45 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E4=BA=86PayNotifyLog?= =?UTF-8?q?ic=E5=92=8CUserSignLogic=E4=B8=AD=E7=9A=84=E6=95=B0=E5=80=BC?= =?UTF-8?q?=E6=AF=94=E8=BE=83=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/logic/PayNotifyLogic.php | 2 +- app/common/logic/UserSignLogic.php | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/common/logic/PayNotifyLogic.php b/app/common/logic/PayNotifyLogic.php index 8a3fe80e7..2949981da 100644 --- a/app/common/logic/PayNotifyLogic.php +++ b/app/common/logic/PayNotifyLogic.php @@ -438,7 +438,7 @@ class PayNotifyLogic extends BaseLogic $uid = $order->uid; $user = User::where('id', $uid)->findOrEmpty(); //check store_id - if(empty($user->store_id)){ + if($user->store_id==0){ $user->store_id = $order['store_id']; } diff --git a/app/common/logic/UserSignLogic.php b/app/common/logic/UserSignLogic.php index b4f66ba65..eac876718 100644 --- a/app/common/logic/UserSignLogic.php +++ b/app/common/logic/UserSignLogic.php @@ -32,16 +32,16 @@ class UserSignLogic extends BaseLogic $list = DictData::where('type_value', 'recharge')->select(); foreach( $list as $k=>$v){ if($v['name']=='level_one'){ - $level_one = $v['value']; + $level_one = bcadd($v['value'],0,2); }elseif($v['name']=='level_two'){ - $level_two = $v['value']; + $level_two = bcadd($v['value'],0,2); }elseif($v['name']=='level_three' ){ - $level_three = $v['value']; + $level_three = bcadd($v['value'],0,2); }elseif($v['name']=='level_four'){ - $level_four = $v['value']; + $level_four = bcadd($v['value'],0,2); } } - $price=(int)$order['price']; + $price= bcadd($order['price'],0,2); switch ($price) { case $level_one: $total_vip = 249;