Эх сурвалжийг харах

限制超级福利层级奖励

jason 6 сар өмнө
parent
commit
775c5ce592

+ 2 - 2
application/common/logic/AirdropLogic.php

@@ -109,7 +109,7 @@ class AirdropLogic
         }
 
         $user_info = UserModel::where('id', $info['user_id'])->find();
-        if($user_info->address_level == 0){
+        if($user_info->is_super != 2){
             (new UserAirdrop)->updateDate($info['id'], UserAirdrop::Stop, '会员未领超级福利');
             return false;
         }
@@ -121,7 +121,7 @@ class AirdropLogic
             ->alias('p')
             ->join('user u', 'u.id = p.parent_id', 'left')
             ->field('u.id, u.address_level, u.direct_super,u.parent_id, p.distance')
-            ->where('u.address_level', '>',0)
+            ->where('u.is_super',2)
             ->order('p.distance asc')
             ->select();
         if(empty($parents_info)){

+ 1 - 1
application/config.php

@@ -365,7 +365,7 @@ return [
     'welfare_rede' => [
         'title'         => '茶世传奇®BTC兑换',
         'product_id'    => 49,//兑换产品id
-        'product_image' => 'https://dapp-static.oss-cn-shenzhen.aliyuncs.com/rwacha/202505/abd05ddf7ebb2287c4e4a004b55837dfc967b254_3.jpg', //产品图片
+        'product_image' => 'https://dapp-static.oss-cn-shenzhen.aliyuncs.com/rwacha/202505/abd05ddf7ebb2287c4e4a004b55837dfc967b254_2.jpg', //产品图片
         'operate_introd'=> '兑换 RWA 茶“茶世传奇·BTC”, 请先向转入地址分别转入【270枚“S1”和14.9“USDT”】或【600枚“RAC”和14.9“USDT”】后再提交,否则将兑换失败。',
         'operate_desc'  => '1.转账数量务必准确,多转或者少转都会导致兑换失败。<BR>2.转入的 USDT 需为币安链钱包地址上的。<BR>3.每个地址最多可兑换 2 套。<BR>4.开放兑换时间:5 月 21 日~5 月 31 日。',
         'transfer_address'  => '0x99BcdB28F4fdB474C95C0db747516a4D61D63A88', //转入地址