修改充值限制 显示

This commit is contained in:
liu 2024-07-06 15:45:17 +08:00
parent a19656bbca
commit 65a7e2da84
2 changed files with 7 additions and 10 deletions

View File

@ -27,25 +27,26 @@ use app\api\lists\user\UserRechargeLists;
$send_bar = "品牌礼品券";
$arr = [
[
'money'=>1000,//采购包
// 'money'=>1000,//采购包
'money'=>1,//采购包
'send'=>249,//礼品券
'money_string'=>$buy_bar,
'send_string'=>$send_bar,
],
[
'money'=>2000,//采购包
'money'=>2,//采购包2000
'send'=>560,//礼品券
'money_string'=>$buy_bar,
'send_string'=>$send_bar,
],
[
'money'=>5000,//采购包
'money'=>5,//采购包5000
'send'=>1550,//礼品券
'money_string'=>$buy_bar,
'send_string'=>$send_bar,
],
[
'money'=>10000,//采购包
'money'=>10,//采购包10000
'send'=>3500,//礼品券
'money_string'=>$buy_bar,
'send_string'=>$send_bar,

View File

@ -23,20 +23,16 @@ class UserSignLogic extends BaseLogic
{
$price=(int)$order['price'];
switch ($price) {
case 1000:
case 1:
$total_vip = 249;
break;
case 2000:
case 2:
$total_vip = 560;
break;
case 5000:
case 3:
case 5:
$total_vip = 1550;
break;
case 10000:
case 4:
case 10:
$total_vip = 3500;
break;
default: