Showing
1 changed file
with
6 additions
and
4 deletions
@@ -247,8 +247,9 @@ class BindController extends AbstractAction | @@ -247,8 +247,9 @@ class BindController extends AbstractAction | ||
247 | $data = array('code' => 400, 'message' => '短信验证码错误', 'data' => ''); | 247 | $data = array('code' => 400, 'message' => '短信验证码错误', 'data' => ''); |
248 | break; | 248 | break; |
249 | } | 249 | } |
250 | - | ||
251 | - $res = BindData::bindMobile($openId, $sourceType, $phoneNum, $areaCode, $password); | 250 | + //$shoppingKey用于购物车信息同步 |
251 | + $shoppingKey = Helpers::getShoppingKeyByCookie(); | ||
252 | + $res = BindData::bindMobile($openId, $sourceType, $phoneNum, $areaCode, $password, $shoppingKey); | ||
252 | if (!isset($res['code'])) { | 253 | if (!isset($res['code'])) { |
253 | break; | 254 | break; |
254 | } | 255 | } |
@@ -298,8 +299,9 @@ class BindController extends AbstractAction | @@ -298,8 +299,9 @@ class BindController extends AbstractAction | ||
298 | $data = array('code' => 400, 'message' => '短信验证码错误', 'data' => ''); | 299 | $data = array('code' => 400, 'message' => '短信验证码错误', 'data' => ''); |
299 | break; | 300 | break; |
300 | } | 301 | } |
301 | - | ||
302 | - $res = BindData::relateMobile($openId, $sourceType, $phoneNum, $areaCode); | 302 | + //$shoppingKey用于购物车信息同步 |
303 | + $shoppingKey = Helpers::getShoppingKeyByCookie(); | ||
304 | + $res = BindData::relateMobile($openId, $sourceType, $phoneNum, $areaCode, $shoppingKey); | ||
303 | if (!isset($res['code'])) { | 305 | if (!isset($res['code'])) { |
304 | break; | 306 | break; |
305 | } | 307 | } |
-
Please register or login to post a comment