rabin 3 năm trước cách đây
mục cha
commit
941c0eca8e
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 4 2
      service/agent/src/My.php

+ 4 - 2
service/agent/src/My.php

@@ -684,8 +684,11 @@ class My extends Core
         # 获取上次提现记录
         $this->data['mybank'] = Dever::db('bill/tixian')->getNew(array('mid' => $this->uid));
         if($this->data['user']){#234初中高可提现
+            $this->data['user']['ti_type'] = 2;
             if ($this->data['user']['level_id'] > 0) {
                 $this->data['user']['ti_type'] = 1;
+                $level=Dever::db('setting/level')->one(array('id'=>$this->data['user']['level_id'],'state'=>1));
+                $this->data['config']['market_desc']=$level['market_desc'];
             }
             /*
             if($this->data['user']['level_id']==2 || $this->data['user']['level_id']==3 || $this->data['user']['level_id']==4){
@@ -694,8 +697,7 @@ class My extends Core
                 $this->data['user']['ti_type']=2;
             }
             */
-            $level=Dever::db('setting/level')->one(array('id'=>$this->data['user']['level_id'],'state'=>1));
-            $this->data['config']['market_desc']=$level['market_desc'];
+            
         }
         return $this->data;
     }