Your Name 3 лет назад
Родитель
Сommit
e1a0b24061
3 измененных файлов с 22 добавлено и 12 удалено
  1. 2 1
      service/agent/src/My.php
  2. 10 10
      service/setting/database/base.php
  3. 10 1
      service/setting/database/level.php

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

@@ -612,7 +612,6 @@ class My extends Core
     public function tixianInfo()
     {
         $this->data['user'] = $this->user;
-        print_R($this->data);die;
         $this->data['config'] = Dever::db('setting/base')->one();
         $this->data['config']['tax'] = $this->data['config']['tax']/100;
         $this->data['bank'] = Dever::db('setting/bank')->select();
@@ -625,6 +624,8 @@ class My extends Core
             }else{
                 $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;
     }

+ 10 - 10
service/setting/database/base.php

@@ -117,16 +117,16 @@ return array
 			'match' 	=> 'is_string',
 			'update'	=> 'text',
 		),
-		'market_desc'      => array
-        (
-            'type'      => 'text-255',
-            'name'      => '提现协议',
-            'default'   => '',
-            'desc'      => '提现协议',
-            'match'     => 'option',
-            'update'    => 'editor',
-            'key'       => '1',
-        ),
+		// 'market_desc'      => array
+  //       (
+  //           'type'      => 'text-255',
+  //           'name'      => '提现协议',
+  //           'default'   => '',
+  //           'desc'      => '提现协议',
+  //           'match'     => 'option',
+  //           'update'    => 'editor',
+  //           'key'       => '1',
+  //       ),
 		
         'state'     => array
         (

+ 10 - 1
service/setting/database/level.php

@@ -90,7 +90,16 @@ return array
             //'update'    => 'text',
             //'list'      => true,
         ),
-
+        'market_desc'      => array
+        (
+            'type'      => 'text-255',
+            'name'      => '提现协议',
+            'default'   => '',
+            'desc'      => '提现协议',
+            'match'     => 'option',
+            'update'    => 'editor',
+            'key'       => '1',
+        ),
         'state'     => array
         (
             'type'      => 'tinyint-1',