stanley-king 4 éve
szülő
commit
45c490f0f9

+ 4 - 4
data/config/dev/base.ini.php

@@ -13,9 +13,9 @@ define('SERVER_TYPE','panda');
 //define('COOKIE_DOMAIN','xyzshops.cn');
 //$SRV_HOST = 'https://www.xyzshops.cn';
 
-define('COOKIE_DOMAIN','192.168.1.195');
+define('COOKIE_DOMAIN','192.168.1.220');
 
-$SRV_HOST = 'http://192.168.1.195';
+$SRV_HOST = 'http://192.168.1.220';
 $REMOTE_IMG_HOST = $SRV_HOST;
 
 
@@ -50,14 +50,14 @@ $config['tablepre']	= 'lrlz_';
 $config['db'][1]['dbhost']       = 'host.docker.internal';
 $config['db'][1]['dbport']       = '3306';
 $config['db'][1]['dbuser']       = 'root';
-$config['db'][1]['dbpwd']        = 'root';
+$config['db'][1]['dbpwd']        = '55668899';
 $config['db'][1]['dbname']       = 'xyzshop';
 $config['db'][1]['dbcharset']    = 'UTF-8';
 
 $config['db']['slave'][0]['dbhost']     = 'host.docker.internal';
 $config['db']['slave'][0]['dbport']     = '3306';
 $config['db']['slave'][0]['dbuser']     = 'root';
-$config['db']['slave'][0]['dbpwd']      = 'root';
+$config['db']['slave'][0]['dbpwd']      = '55668899';
 $config['db']['slave'][0]['dbname']     = 'xyzshop';
 $config['db']['slave'][0]['dbcharset']  = 'UTF-8';
 

+ 2 - 2
helper/index_tab.php

@@ -54,12 +54,12 @@ class index_tab
         $mod_webcode = Model('web_code');
         $tabs = $mod_webcode->get_cache(self::mb_home_tab_id);
         if($tabs == null || empty($tabs)) {
-            $tabs[] = array('special_id' => 0,'name' => '首页', 'sort' => 0);
+            $tabs[] = ['special_id' => 0,'name' => '首页', 'sort' => 0];
         }
 
         uasort($tabs,'comp_tab');
         foreach ($tabs as $key => $val) {
-            $this->mTabs[] = array('special_id' => $val['special_id'],'name' => $val['name']);
+            $this->mTabs[] = ['special_id' => $val['special_id'],'name' => $val['name']];
         }
     }
 }

+ 12 - 8
mobile/control/control.php

@@ -50,14 +50,18 @@ class mobileControl
         $this->set_relay();
         statistics_helper::instance()->add_call($param);
 
-//        if(session_helper::version_code() > 168) {
-//            if(!$this->verify()) {
-//                throw new UnSignException();
-//            }
-//        }
-//        else {
-//            throw new UnSignException();
-//        }
+        $client_tpe = session_helper::client_type();
+        if($client_tpe == session_helper::device_wap) {
+            $unused = 0;
+        }
+        elseif(session_helper::version_code() > 168) {
+            if(!$this->verify()) {
+                throw new UnSignException();
+            }
+        }
+        else {
+            $unused = 0;
+        }
     }
     private function verify()
     {

+ 27 - 6
mobile/control/index.php

@@ -62,17 +62,38 @@ class indexControl extends specialControl
         return parent::indexOp();
     }
 
+    public function wap_indexOp()
+    {
+        global $config;
+        $setting = $config['client_setting'];
+        if(empty($setting)) {
+            $spid = 0;
+        }
+        else
+        {
+            $version = session_helper::version_code();
+            $running = $setting['running'];
+            $spid = $setting['home'];
+
+            if($version <= $running) {
+                $spid = 0;
+            }
+        }
+
+        return self::outsuccess(['special_id' => $spid]);
+    }
+
     public function tabsOp()
     {
         $client_tpe = session_helper::client_type();
         if($client_tpe == session_helper::device_mini || $client_tpe == session_helper::device_wap) {
             $tabs = [];
-            $tabs[] = ['special_id' => 1045,'name' => '推荐'];
-//            $tabs[] = ['special_id' => 1122,'name' => '品牌'];
-//            $tabs[] = ['special_id' => 1025,'name' => '护肤'];
-//            $tabs[] = ['special_id' => 1035,'name' => '彩妆'];
-//            $tabs[] = ['special_id' => 1036,'name' => '洗护'];
-//            $tabs[] = ['special_id' => 886,'name' => '男士'];
+            $tabs[] = ['special_id' => 1039,'name' => '推荐'];
+            $tabs[] = ['special_id' => 1122,'name' => '品牌'];
+            $tabs[] = ['special_id' => 1025,'name' => '护肤'];
+            $tabs[] = ['special_id' => 1035,'name' => '彩妆'];
+            $tabs[] = ['special_id' => 1036,'name' => '洗护'];
+            $tabs[] = ['special_id' => 886,'name' => '男士'];
         }
         else {
             $tabs = index_tab::instance()->tabs();