Merge branch 'master' of git.yoho.cn:fe/YOHOBUYWAP
Showing
17 changed files
with
31 additions
and
11 deletions
compile/m.yohobuy.com/4.6.3/test.php
0 → 100644
@@ -119,7 +119,7 @@ class Yohobuy | @@ -119,7 +119,7 @@ class Yohobuy | ||
119 | { | 119 | { |
120 | $clientType = self::clientType(); | 120 | $clientType = self::clientType(); |
121 | $param = array( | 121 | $param = array( |
122 | - 'app_version' => '4.6.0', | 122 | + 'app_version' => '3.8.2', |
123 | 'client_type' => $clientType, | 123 | 'client_type' => $clientType, |
124 | 'os_version' => 'yohobuy:h5', | 124 | 'os_version' => 'yohobuy:h5', |
125 | 'private_key' => self::$privateKeyList[$clientType], | 125 | 'private_key' => self::$privateKeyList[$clientType], |
@@ -4,6 +4,7 @@ namespace LibModels\Wap\Home; | @@ -4,6 +4,7 @@ namespace LibModels\Wap\Home; | ||
4 | 4 | ||
5 | use Api\Sign; | 5 | use Api\Sign; |
6 | use Api\Yohobuy; | 6 | use Api\Yohobuy; |
7 | +use Plugin\Helpers; | ||
7 | 8 | ||
8 | /** | 9 | /** |
9 | * 购物车的数据模型 | 10 | * 购物车的数据模型 |
@@ -382,6 +383,9 @@ class CartData | @@ -382,6 +383,9 @@ class CartData | ||
382 | $param = Yohobuy::param(); | 383 | $param = Yohobuy::param(); |
383 | $param['debug'] = 'Y'; | 384 | $param['debug'] = 'Y'; |
384 | $param['client_type'] = 'h5'; // 需要ERP统计WAP的下单量 | 385 | $param['client_type'] = 'h5'; // 需要ERP统计WAP的下单量 |
386 | + if(Helpers::is_weixin()) { | ||
387 | + $param['client_type'] = 'wechat'; | ||
388 | + } | ||
385 | $param['private_key'] = Yohobuy::$privateKeyList['android']; // H5默认使用Android的私钥 | 389 | $param['private_key'] = Yohobuy::$privateKeyList['android']; // H5默认使用Android的私钥 |
386 | $param['method'] = 'app.Shopping.submit'; | 390 | $param['method'] = 'app.Shopping.submit'; |
387 | $param['address_id'] = $addressId; | 391 | $param['address_id'] = $addressId; |
@@ -4,6 +4,7 @@ namespace LibModels\Wap\Passport; | @@ -4,6 +4,7 @@ namespace LibModels\Wap\Passport; | ||
4 | 4 | ||
5 | use Api\Sign; | 5 | use Api\Sign; |
6 | use Api\Yohobuy; | 6 | use Api\Yohobuy; |
7 | +use Plugin\Helpers; | ||
7 | 8 | ||
8 | /** | 9 | /** |
9 | * 绑定手机号 数据模型 | 10 | * 绑定手机号 数据模型 |
@@ -28,7 +29,7 @@ class BindData | @@ -28,7 +29,7 @@ class BindData | ||
28 | */ | 29 | */ |
29 | public static function bindCheck($mobile, $openId, $sourceType, $area) | 30 | public static function bindCheck($mobile, $openId, $sourceType, $area) |
30 | { | 31 | { |
31 | - $param = Yohobuy::param(); | 32 | + $param = Yohobuy::param(); |
32 | $param['method'] = 'app.passport.signCheck'; | 33 | $param['method'] = 'app.passport.signCheck'; |
33 | $param['area'] = $area; | 34 | $param['area'] = $area; |
34 | $param['mobile'] = $mobile; | 35 | $param['mobile'] = $mobile; |
@@ -85,6 +86,9 @@ class BindData | @@ -85,6 +86,9 @@ class BindData | ||
85 | { | 86 | { |
86 | $param = Yohobuy::param(); | 87 | $param = Yohobuy::param(); |
87 | 88 | ||
89 | + if(Helpers::is_weixin()) { | ||
90 | + $param['client_type'] = 'wechat'; | ||
91 | + } | ||
88 | $param['method'] = 'app.passport.bind'; | 92 | $param['method'] = 'app.passport.bind'; |
89 | $param['mobile'] = $mobile; | 93 | $param['mobile'] = $mobile; |
90 | $param['open_id'] = $openId; | 94 | $param['open_id'] = $openId; |
@@ -995,4 +995,16 @@ class Helpers | @@ -995,4 +995,16 @@ class Helpers | ||
995 | } | 995 | } |
996 | return $para_filter; | 996 | return $para_filter; |
997 | } | 997 | } |
998 | + | ||
999 | + | ||
1000 | + /** | ||
1001 | + * 判断是否是微信客户端 | ||
1002 | + * @return boolean | ||
1003 | + */ | ||
1004 | + public static function is_weixin(){ | ||
1005 | + if ( strpos($_SERVER['HTTP_USER_AGENT'], 'MicroMessenger') !== false ) { | ||
1006 | + return true; | ||
1007 | + } | ||
1008 | + return false; | ||
1009 | + } | ||
998 | } | 1010 | } |
@@ -49,7 +49,7 @@ class AliwapService | @@ -49,7 +49,7 @@ class AliwapService | ||
49 | 'partner' => $this->config->partner, | 49 | 'partner' => $this->config->partner, |
50 | '_input_charset' => $this->config->input_charset, | 50 | '_input_charset' => $this->config->input_charset, |
51 | 'notify_url' => Yohobuy::SERVICE_NOTIFY . $this->config->notify_url, | 51 | 'notify_url' => Yohobuy::SERVICE_NOTIFY . $this->config->notify_url, |
52 | - 'return_url' => Helpers::url($this->config->return_url), | 52 | + 'return_url' => Helpers::transHttpsUrl(Helpers::url($this->config->return_url)), |
53 | /* 业务参数 */ | 53 | /* 业务参数 */ |
54 | 'payment_type' => $this->config->payment_type, | 54 | 'payment_type' => $this->config->payment_type, |
55 | 'seller_id' => $this->config->partner, | 55 | 'seller_id' => $this->config->partner, |
@@ -58,7 +58,7 @@ class AliwapService | @@ -58,7 +58,7 @@ class AliwapService | ||
58 | 'out_trade_no' => $params->orderCode, | 58 | 'out_trade_no' => $params->orderCode, |
59 | 'subject' => $params->goodsName, | 59 | 'subject' => $params->goodsName, |
60 | 'total_fee' => $params->totalFee / 100, //单位为元 | 60 | 'total_fee' => $params->totalFee / 100, //单位为元 |
61 | - "show_url" => Helpers::url(''), | 61 | + "show_url" => Helpers::transHttpsUrl(Helpers::url('')), |
62 | ); | 62 | ); |
63 | 63 | ||
64 | ksort($parameter); | 64 | ksort($parameter); |
static/dist/myohobuy/4.6.1/index-debug.js
0 → 100644
This diff could not be displayed because it is too large.
static/dist/myohobuy/4.6.1/index.css
0 → 100644
This diff could not be displayed because it is too large.
static/dist/myohobuy/4.6.1/index.js
0 → 100644
This diff could not be displayed because it is too large.
static/dist/myohobuy/4.6.1/lib.js
0 → 100644
This diff could not be displayed because it is too large.
@@ -219,7 +219,7 @@ $('.btn-balance').on('touchend', function() { | @@ -219,7 +219,7 @@ $('.btn-balance').on('touchend', function() { | ||
219 | } | 219 | } |
220 | }); | 220 | }); |
221 | 221 | ||
222 | -$('.off-shell-goods').on('touchstart touchend', function(e) { | 222 | +$('.off-shell-goods').on('click', function(e) { |
223 | var $this = $(e.target).closest('span'); | 223 | var $this = $(e.target).closest('span'); |
224 | 224 | ||
225 | if ($this.hasClass('icon-del')) { | 225 | if ($this.hasClass('icon-del')) { |
@@ -41,7 +41,7 @@ class PayController extends AbstractAction | @@ -41,7 +41,7 @@ class PayController extends AbstractAction | ||
41 | /* 判断用户是否登录 */ | 41 | /* 判断用户是否登录 */ |
42 | $uid = $this->getUid(true); | 42 | $uid = $this->getUid(true); |
43 | if (!$uid) { | 43 | if (!$uid) { |
44 | - $this->go( Helpers::url('/signin.html', array('refer' => $this->_request->server('HTTP_REFERER'))) ); | 44 | + $this->go( Helpers::url('/signin.html', array('refer' => $this->server('HTTP_REFERER', SITE_MAIN)))); |
45 | break; | 45 | break; |
46 | } | 46 | } |
47 | 47 |
@@ -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.6.1" | 53 | +application.version = "4.6.3" |
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.6.1" | 53 | +application.version = "4.6.3" |
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.6.1" | 53 | +application.version = "4.6.3" |
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.6.1" | 53 | +application.version = "4.6.3" |
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