feat: 移除首充逻辑中的金额判断条件
This commit is contained in:
parent
e65d201039
commit
2ae218e0bd
@ -447,32 +447,6 @@ class PayNotifyLogic extends BaseLogic
|
|||||||
bcscale(2);
|
bcscale(2);
|
||||||
|
|
||||||
UserSignLogic::dealRechargeFrozen($user, $order, $order['user_ship']);
|
UserSignLogic::dealRechargeFrozen($user, $order, $order['user_ship']);
|
||||||
//写入对应得金额
|
|
||||||
if(in_array($order['pay_price'],['0.01','1000','2000','5000','10000'])){
|
|
||||||
switch ($order['pay_price']){
|
|
||||||
case 0.01:
|
|
||||||
case 1000:
|
|
||||||
$total_vip = 249;
|
|
||||||
break;
|
|
||||||
case 2000:
|
|
||||||
$total_vip = 560;
|
|
||||||
break;
|
|
||||||
case 5000:
|
|
||||||
$total_vip = 1550;
|
|
||||||
break;
|
|
||||||
case 10000:
|
|
||||||
$total_vip = 3500;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
$total_vip = 1;
|
|
||||||
}
|
|
||||||
// $total_vip = bcmul($order['pay_price'], 0.1, 2);
|
|
||||||
$write = UserSignLogic::write($order, $total_vip, 0, 0, 7);
|
|
||||||
UserSignLogic::write_log($write, $total_vip, 0, 7);
|
|
||||||
|
|
||||||
$write_get = UserSignLogic::write($order, $total_vip, 0, 1, 7);
|
|
||||||
UserSignLogic::write_log($write_get, $total_vip, 0, 7);
|
|
||||||
}
|
|
||||||
|
|
||||||
//更新等级
|
//更新等级
|
||||||
$user->user_ship = $order['user_ship'];
|
$user->user_ship = $order['user_ship'];
|
||||||
|
@ -43,7 +43,7 @@ class UserSignLogic extends BaseLogic
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$count = UserRecharge::where('uid', $order->uid)->count();
|
$count = UserRecharge::where('uid', $order->uid)->count();
|
||||||
if ($count == 0 && in_array($user_ship, [1, 2, 3, 5, 6, 7, 8])) {
|
if ($count >=1 && in_array($user_ship, [1, 2, 3, 5, 6, 7, 8])) {
|
||||||
//首充
|
//首充
|
||||||
$write = self::write($order, $total_vip, 0, 1, 9);
|
$write = self::write($order, $total_vip, 0, 1, 9);
|
||||||
self::write_log($write, $total_vip, 0, 7);
|
self::write_log($write, $total_vip, 0, 7);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user