code review by fei.hong : do modify alipay and weixin pay notice url
Showing
11 changed files
with
22 additions
and
27 deletions
@@ -414,8 +414,8 @@ class AbstractAction extends Controller_Abstract | @@ -414,8 +414,8 @@ class AbstractAction extends Controller_Abstract | ||
414 | * 设置网站SEO的描述内容 | 414 | * 设置网站SEO的描述内容 |
415 | * | 415 | * |
416 | * @param string $description 描述内容 | 416 | * @param string $description 描述内容 |
417 | - * @param string $sign 连接的字符串 | ||
418 | * @param bool $showMore 是否显示更多内容 | 417 | * @param bool $showMore 是否显示更多内容 |
418 | + * @param string $sign 连接的字符串 | ||
419 | * @return void | 419 | * @return void |
420 | */ | 420 | */ |
421 | protected function setDescription($description, $showMore = true, $sign = ' ') | 421 | protected function setDescription($description, $showMore = true, $sign = ' ') |
@@ -23,11 +23,11 @@ class Yohobuy | @@ -23,11 +23,11 @@ class Yohobuy | ||
23 | // const SERVICE_URL = 'http://service.api.yohobuy.com/'; | 23 | // const SERVICE_URL = 'http://service.api.yohobuy.com/'; |
24 | // const YOHOBUY_URL = 'http://www.yohobuy.com/'; | 24 | // const YOHOBUY_URL = 'http://www.yohobuy.com/'; |
25 | 25 | ||
26 | -// const API_URL = 'http://apih5.yoho.cn/'; | ||
27 | -// const API_URL2 = 'http://apih5.yoho.cn/'; | ||
28 | -// const SERVICE_URL = 'http://serviceh5.yoho.cn/'; | ||
29 | -// const YOHOBUY_URL = 'http://www.yohobuy.com/'; | ||
30 | -// const API_OLD = 'http://api2.open.yohobuy.com/'; | 26 | + const API_URL = 'http://apih5.yoho.cn/'; |
27 | + const API_URL2 = 'http://apih5.yoho.cn/'; | ||
28 | + const SERVICE_URL = 'http://serviceh5.yoho.cn/'; | ||
29 | + const YOHOBUY_URL = 'http://www.yohobuy.com/'; | ||
30 | + const API_OLD = 'http://api2.open.yohobuy.com/'; | ||
31 | 31 | ||
32 | /* 测试环境 */ | 32 | /* 测试环境 */ |
33 | // const API_URL = 'http://testapi.yoho.cn:28078/'; | 33 | // const API_URL = 'http://testapi.yoho.cn:28078/'; |
@@ -36,11 +36,11 @@ class Yohobuy | @@ -36,11 +36,11 @@ class Yohobuy | ||
36 | // const API_OLD = 'http://test2.open.yohobuy.com/'; | 36 | // const API_OLD = 'http://test2.open.yohobuy.com/'; |
37 | 37 | ||
38 | /* 预览环境 */ | 38 | /* 预览环境 */ |
39 | - const API_URL = 'http://preapi.yoho.cn/'; | ||
40 | - const API_URL2 = 'http://preapi.yoho.cn/'; | ||
41 | - const SERVICE_URL = 'http://preservice.yoho.cn/'; | ||
42 | - const YOHOBUY_URL = 'http://www.yohobuy.com/'; | ||
43 | - const API_OLD = 'http://api2.open.yohobuy.com/'; | 39 | +// const API_URL = 'http://preapi.yoho.cn/'; |
40 | +// const API_URL2 = 'http://preapi.yoho.cn/'; | ||
41 | +// const SERVICE_URL = 'http://preservice.yoho.cn/'; | ||
42 | +// const YOHOBUY_URL = 'http://www.yohobuy.com/'; | ||
43 | +// const API_OLD = 'http://api2.open.yohobuy.com/'; | ||
44 | 44 | ||
45 | /* PC重构地址 */ | 45 | /* PC重构地址 */ |
46 | // const API_URL = 'http://test.open.yohobuy.com/'; | 46 | // const API_URL = 'http://test.open.yohobuy.com/'; |
@@ -65,7 +65,7 @@ class IndexData | @@ -65,7 +65,7 @@ class IndexData | ||
65 | $param['limit'] = $limit; | 65 | $param['limit'] = $limit; |
66 | $param['client_secret'] = Sign::getSign($param); | 66 | $param['client_secret'] = Sign::getSign($param); |
67 | 67 | ||
68 | - return Yohobuy::get(Yohobuy::SERVICE_URL . 'operations/api/v5/resource/home', $param); | 68 | + return Yohobuy::get(Yohobuy::SERVICE_URL . 'operations/api/v5/resource/home', $param, false, false, 2); |
69 | } | 69 | } |
70 | 70 | ||
71 | /** | 71 | /** |
@@ -32,7 +32,7 @@ class AliwapConfig | @@ -32,7 +32,7 @@ class AliwapConfig | ||
32 | * Enter description here ... | 32 | * Enter description here ... |
33 | * @var String | 33 | * @var String |
34 | */ | 34 | */ |
35 | - var $notify_url = 'http://preservice.yoho.cn/payment/alipaywap_notify';//"http://m.yohobuy.com/shopping/pay/aliwapnotice"; | 35 | + var $notify_url = 'http://service.yoho.cn/payment/alipaywap_notify';//"http://m.yohobuy.com/shopping/pay/aliwapnotice"; |
36 | 36 | ||
37 | /** | 37 | /** |
38 | * 浏览器的返回 | 38 | * 浏览器的返回 |
@@ -34,7 +34,7 @@ class WxPayConfig | @@ -34,7 +34,7 @@ class WxPayConfig | ||
34 | const JS_API_CALL_URL = 'http://m.yohobuy.com/shopping/pay/wechatwap'; | 34 | const JS_API_CALL_URL = 'http://m.yohobuy.com/shopping/pay/wechatwap'; |
35 | //=======【异步通知url设置】=================================== | 35 | //=======【异步通知url设置】=================================== |
36 | //异步通知url,商户根据实际开发过程设定 | 36 | //异步通知url,商户根据实际开发过程设定 |
37 | - const NOTIFY_URL = 'http://preservice.yoho.cn/payment/wechatwap_notify';//'http://pay.yohobuy.com/notify/wechatwap'; | 37 | + const NOTIFY_URL = 'http://service.yoho.cn/payment/wechatwap_notify';//'http://pay.yohobuy.com/notify/wechatwap'; |
38 | //=======【证书路径设置】===================================== | 38 | //=======【证书路径设置】===================================== |
39 | /** | 39 | /** |
40 | * TODO:设置商户证书路径 | 40 | * TODO:设置商户证书路径 |
@@ -22,8 +22,6 @@ class BoysController extends AbstractAction | @@ -22,8 +22,6 @@ class BoysController extends AbstractAction | ||
22 | $this->setExpires(300); // 缓存5分钟 | 22 | $this->setExpires(300); // 缓存5分钟 |
23 | } | 23 | } |
24 | 24 | ||
25 | - // 设置COOKIE标识用户访问过该页面了 | ||
26 | - // Index\HomeModel::setSwitchToCookie(Index\HomeModel::COOKIE_NAME_BOYS); | ||
27 | // 设置网站标题 | 25 | // 设置网站标题 |
28 | $this->setTitle('男生首页'); | 26 | $this->setTitle('男生首页'); |
29 | // 显示侧边栏 | 27 | // 显示侧边栏 |
@@ -15,9 +15,8 @@ class GirlsController extends AbstractAction | @@ -15,9 +15,8 @@ class GirlsController extends AbstractAction | ||
15 | public function indexAction() | 15 | public function indexAction() |
16 | { | 16 | { |
17 | // 设置浏览器缓存5分钟 | 17 | // 设置浏览器缓存5分钟 |
18 | - $this->setExpires(300); // 缓存5分钟 | ||
19 | - // 设置COOKIE标识用户访问过该页面了 | ||
20 | - // Index\HomeModel::setSwitchToCookie(Index\HomeModel::COOKIE_NAME_GIRLS); | 18 | + $this->setExpires(300); |
19 | + | ||
21 | // 设置网站标题 | 20 | // 设置网站标题 |
22 | $this->setTitle('女生首页'); | 21 | $this->setTitle('女生首页'); |
23 | // 显示侧边栏 | 22 | // 显示侧边栏 |
@@ -15,9 +15,8 @@ class KidsController extends AbstractAction | @@ -15,9 +15,8 @@ class KidsController extends AbstractAction | ||
15 | public function indexAction() | 15 | public function indexAction() |
16 | { | 16 | { |
17 | // 设置浏览器缓存5分钟 | 17 | // 设置浏览器缓存5分钟 |
18 | - $this->setExpires(300); // 缓存5分钟 | ||
19 | - // 设置COOKIE标识用户访问过该页面了 | ||
20 | - // Index\HomeModel::setSwitchToCookie(Index\HomeModel::COOKIE_NAME_KIDS); | 18 | + $this->setExpires(300); |
19 | + | ||
21 | // 设置网站标题 | 20 | // 设置网站标题 |
22 | $this->setTitle('潮童首页'); | 21 | $this->setTitle('潮童首页'); |
23 | // 显示侧边栏 | 22 | // 显示侧边栏 |
@@ -15,9 +15,8 @@ class LifestyleController extends AbstractAction | @@ -15,9 +15,8 @@ class LifestyleController extends AbstractAction | ||
15 | public function indexAction() | 15 | public function indexAction() |
16 | { | 16 | { |
17 | // 设置浏览器缓存5分钟 | 17 | // 设置浏览器缓存5分钟 |
18 | - $this->setExpires(300); // 缓存5分钟 | ||
19 | - // 设置COOKIE标识用户访问过该页面了 | ||
20 | - // Index\HomeModel::setSwitchToCookie(Index\HomeModel::COOKIE_NAME_LIFESTYLE); | 18 | + $this->setExpires(300); |
19 | + | ||
21 | // 设置网站标题 | 20 | // 设置网站标题 |
22 | $this->setTitle('创意生活首页'); | 21 | $this->setTitle('创意生活首页'); |
23 | // 显示侧边栏 | 22 | // 显示侧边栏 |
@@ -221,7 +221,7 @@ class InfoController extends AbstractAction | @@ -221,7 +221,7 @@ class InfoController extends AbstractAction | ||
221 | $data['guang']['id'] = $id; | 221 | $data['guang']['id'] = $id; |
222 | 222 | ||
223 | // 获取详情内容信息, 异常则跳到错误页面 | 223 | // 获取详情内容信息, 异常则跳到错误页面 |
224 | - $detail = DetailData::packageFoEzine($id, true); | 224 | + $detail = DetailData::package($id, true); |
225 | if (empty($detail['getArticle'])) { | 225 | if (empty($detail['getArticle'])) { |
226 | $this->_view->display('index', $data); | 226 | $this->_view->display('index', $data); |
227 | return; | 227 | return; |
-
Please register or login to post a comment