Merge branch 'master' into hotfix/shopBetter
Showing
22 changed files
with
46 additions
and
30 deletions
compile/m.yohobuy.com/4.9.22/test.md
0 → 100644
@@ -155,16 +155,11 @@ class PlusstarData | @@ -155,16 +155,11 @@ class PlusstarData | ||
155 | if (isset($getUidBrandFav['code']) && $getUidBrandFav['code'] == 200) { | 155 | if (isset($getUidBrandFav['code']) && $getUidBrandFav['code'] == 200) { |
156 | $cached['getUidBrandFav'] = true; | 156 | $cached['getUidBrandFav'] = true; |
157 | }else{ | 157 | }else{ |
158 | - $getUidBrandFavResult = false; | 158 | + $cached['getUidBrandFav'] = false; |
159 | } | 159 | } |
160 | 160 | ||
161 | } | 161 | } |
162 | - }else{ | ||
163 | - $getUidBrandFavResult = false; | ||
164 | - } | ||
165 | 162 | ||
166 | - if (!empty($cached)) { | ||
167 | - $cached['getUidBrandFav'] = $getUidBrandFavResult; | ||
168 | return $cached; | 163 | return $cached; |
169 | } | 164 | } |
170 | } | 165 | } |
@@ -177,14 +172,18 @@ class PlusstarData | @@ -177,14 +172,18 @@ class PlusstarData | ||
177 | $param['client_secret'] = Sign::getSign($param); | 172 | $param['client_secret'] = Sign::getSign($param); |
178 | $brandInfo = Yohobuy::get(SERVICE_URL . self::URI_BRANDINFO_PLUSSTAR_NEW . 'getbrandinfo', $param, 3600); | 173 | $brandInfo = Yohobuy::get(SERVICE_URL . self::URI_BRANDINFO_PLUSSTAR_NEW . 'getbrandinfo', $param, 3600); |
179 | 174 | ||
180 | - if (!isset($brandInfo['data']['brand_id'])) { | ||
181 | - // 再尝试获取二级缓存(master), 有数据则直接返回. | ||
182 | - $cached = Cache::get($key, 'slave'); | ||
183 | - if (!empty($cached)) { | ||
184 | - return $cached; | ||
185 | - } | ||
186 | - return $result; | ||
187 | - } else { | 175 | +// if (!isset($brandInfo['data']['brand_id'])) { |
176 | +// // 再尝试获取二级缓存(master), 有数据则直接返回. | ||
177 | +// $cached = Cache::get($key, 'slave'); | ||
178 | +// if (!empty($cached)) { | ||
179 | +// return $cached; | ||
180 | +// } | ||
181 | +// return $result; | ||
182 | +// } else { | ||
183 | +// $result['getBrandInfo'] = $brandInfo; | ||
184 | +// } | ||
185 | + | ||
186 | + if (isset($brandInfo['data']['brand_id'])) { | ||
188 | $result['getBrandInfo'] = $brandInfo; | 187 | $result['getBrandInfo'] = $brandInfo; |
189 | } | 188 | } |
190 | 189 |
No preview for this file type
No preview for this file type
No preview for this file type
static/dist/myohobuy/4.9.22/index-debug.js
0 → 100644
This diff could not be displayed because it is too large.
static/dist/myohobuy/4.9.22/index.css
0 → 100644
This diff could not be displayed because it is too large.
static/dist/myohobuy/4.9.22/index.js
0 → 100644
This diff could not be displayed because it is too large.
static/dist/myohobuy/4.9.22/lib.js
0 → 100644
This diff could not be displayed because it is too large.
static/dist/myohobuy/assets/.DS_Store
0 → 100644
No preview for this file type
1 | +<div class="hot-category"> | ||
2 | + {{> home/floor_header}} | ||
3 | + | ||
4 | + {{# banner}} | ||
5 | + <a class="category-banner" href="{{url}}"> | ||
6 | + <img class="lazy" data-original="{{img}}"> | ||
7 | + </a> | ||
8 | + {{/ banner}} | ||
9 | + <ul class="category-list clearfix"> | ||
10 | + {{# list}} | ||
11 | + <li data-bp-id="shop_hotcategory_{{img}}_0" class="buriedpoint"> | ||
12 | + <a href="{{url}}"> | ||
13 | + <div class="img-box"> | ||
14 | + <img src="{{img}}" alt=""> | ||
15 | + </div> | ||
16 | + </a> | ||
17 | + <div class="img-cover">{{name}}</div> | ||
18 | + </li> | ||
19 | + {{/ list}} | ||
20 | + </ul> | ||
21 | +</div> |
@@ -89,7 +89,7 @@ class IndexModel | @@ -89,7 +89,7 @@ class IndexModel | ||
89 | } | 89 | } |
90 | $data['guang']['infos'][] = $build; | 90 | $data['guang']['infos'][] = $build; |
91 | } | 91 | } |
92 | - print_r($data['guang']['infos']); | 92 | + //print_r($data['guang']['infos']); |
93 | 93 | ||
94 | // 分页需要参数 | 94 | // 分页需要参数 |
95 | $data['guang']['gender'] = $gender; | 95 | $data['guang']['gender'] = $gender; |
@@ -190,6 +190,7 @@ class IndexModel | @@ -190,6 +190,7 @@ class IndexModel | ||
190 | 190 | ||
191 | // 内容列表 | 191 | // 内容列表 |
192 | if (!empty($article['data']['list']['artList'])) { | 192 | if (!empty($article['data']['list']['artList'])) { |
193 | + | ||
193 | foreach ($article['data']['list']['artList'] as $value) { | 194 | foreach ($article['data']['list']['artList'] as $value) { |
194 | $data['guang']['infos'][$curIndex]['info'][] = Helpers::formatArticle($value, true, false, true); | 195 | $data['guang']['infos'][$curIndex]['info'][] = Helpers::formatArticle($value, true, false, true); |
195 | } | 196 | } |
@@ -214,7 +215,7 @@ class IndexModel | @@ -214,7 +215,7 @@ class IndexModel | ||
214 | $category = array(); | 215 | $category = array(); |
215 | $article = array(); | 216 | $article = array(); |
216 | 217 | ||
217 | - | 218 | + //print_r($data); |
218 | return $data; | 219 | return $data; |
219 | } | 220 | } |
220 | 221 |
@@ -24,12 +24,8 @@ class IndexController extends AbstractAction | @@ -24,12 +24,8 @@ class IndexController extends AbstractAction | ||
24 | $this->setTitle('逛'); | 24 | $this->setTitle('逛'); |
25 | $this->setNavHeader('逛', true, SITE_MAIN); | 25 | $this->setNavHeader('逛', true, SITE_MAIN); |
26 | 26 | ||
27 | - // $uid = $this->getUid(); | ||
28 | $udid = $this->getUdid(); | 27 | $udid = $this->getUdid(); |
29 | 28 | ||
30 | - $uid = 8039759; | ||
31 | - //$udid = P_YDoclyC4l9GWC9gScyTpbMiWnQpaYA; | ||
32 | - | ||
33 | $type = $this->get('id', 0); | 29 | $type = $this->get('id', 0); |
34 | $gender = $this->get('gender'); | 30 | $gender = $this->get('gender'); |
35 | if (is_string($gender)) { | 31 | if (is_string($gender)) { |
@@ -19,8 +19,8 @@ class InfoController extends AbstractAction | @@ -19,8 +19,8 @@ class InfoController extends AbstractAction | ||
19 | */ | 19 | */ |
20 | public function indexAction() | 20 | public function indexAction() |
21 | { | 21 | { |
22 | - //$id = $this->get('id'); | ||
23 | - $id= 34282; | 22 | + $id = $this->get('id'); |
23 | + // $id= 34282; | ||
24 | 24 | ||
25 | // 判断参数是否有效, 无效会跳转到错误页面 | 25 | // 判断参数是否有效, 无效会跳转到错误页面 |
26 | if (!is_numeric($id)) { | 26 | if (!is_numeric($id)) { |
@@ -50,7 +50,7 @@ application.template.ext = ".phtml" | @@ -50,7 +50,7 @@ application.template.ext = ".phtml" | ||
50 | application.assets.path = ROOT_PATH "/assets" | 50 | application.assets.path = ROOT_PATH "/assets" |
51 | 51 | ||
52 | ; 应用的版本号 | 52 | ; 应用的版本号 |
53 | -application.version = "4.9.20" | 53 | +application.version = "4.9.22" |
54 | 54 | ||
55 | ; 网站SEO信息 | 55 | ; 网站SEO信息 |
56 | application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停" | 56 | application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停" |
@@ -50,7 +50,7 @@ application.template.ext = ".phtml" | @@ -50,7 +50,7 @@ application.template.ext = ".phtml" | ||
50 | application.assets.path = ROOT_PATH "/assets" | 50 | application.assets.path = ROOT_PATH "/assets" |
51 | 51 | ||
52 | ; 应用的版本号 | 52 | ; 应用的版本号 |
53 | -application.version = "4.9.20" | 53 | +application.version = "4.9.22" |
54 | 54 | ||
55 | ; 网站SEO信息 | 55 | ; 网站SEO信息 |
56 | application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停" | 56 | application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停" |
@@ -50,7 +50,7 @@ application.template.ext = ".phtml" | @@ -50,7 +50,7 @@ application.template.ext = ".phtml" | ||
50 | application.assets.path = ROOT_PATH "/assets" | 50 | application.assets.path = ROOT_PATH "/assets" |
51 | 51 | ||
52 | ; 应用的版本号 | 52 | ; 应用的版本号 |
53 | -application.version = "4.9.20" | 53 | +application.version = "4.9.22" |
54 | 54 | ||
55 | ; 网站SEO信息 | 55 | ; 网站SEO信息 |
56 | application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停" | 56 | application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停" |
@@ -50,7 +50,7 @@ application.template.ext = ".phtml" | @@ -50,7 +50,7 @@ application.template.ext = ".phtml" | ||
50 | application.assets.path = ROOT_PATH "/assets" | 50 | application.assets.path = ROOT_PATH "/assets" |
51 | 51 | ||
52 | ; 应用的版本号 | 52 | ; 应用的版本号 |
53 | -application.version = "4.9.20" | 53 | +application.version = "4.9.22" |
54 | 54 | ||
55 | ; 网站SEO信息 | 55 | ; 网站SEO信息 |
56 | application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停" | 56 | application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停" |
-
Please register or login to post a comment