Your Name 2 mēnešus atpakaļ
vecāks
revīzija
ad3f1c3922
1 mainītis faili ar 10 papildinājumiem un 6 dzēšanām
  1. 10
    6
      apps/common/HomeController.php

+ 10
- 6
apps/common/HomeController.php Parādīt failu

@@ -101,8 +101,10 @@ class HomeController extends Controller
101 101
             if( $domain == $main_domain ){
102 102
                 //cookie('city','');
103 103
                 cookie('city',$this->config('firstcity'));
104
+                //var_dump($domain_first);die;
104 105
             }else{
105 106
                 cookie('city',$domain_first);
107
+
106 108
                 //var_dump($domain_first);
107 109
                 //设置新的cookie 城市id
108 110
                 //$cityid = 1;
@@ -119,14 +121,16 @@ class HomeController extends Controller
119 121
                     1,2,3,4
120 122
                 ];
121 123
                 $this->assign('testArray',$testArray);*/
124
+            }
122 125
 
123
-                //输出logo
124
-                $citylogo = $this->model->getCityLogo($domain_first);
125
-                if(empty($citylogo)){
126
-                    $citylogo = $this->model->getSiteLogo();
127
-                }
128
-                $this->assign('citylogo',$citylogo);
126
+            //var_dump($domain_first);die;
127
+            //输出logo
128
+            $citylogo = $this->model->getCityLogo($domain_first);
129
+            if(empty($citylogo)){
130
+                $citylogo = $this->model->getSiteLogo();
129 131
             }
132
+            $this->assign('citylogo',$citylogo);
133
+
130 134
         }else{
131 135
             $cur_city = array_filter($citys, function($t) use ($domain) { return $t['isurl'] == $domain; });
132 136
             if( !empty($cur_city) ){

Notiek ielāde…
Atcelt
Saglabāt