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;