Authored by 周少峰

add $shoppingKey

... ... @@ -247,8 +247,9 @@ class BindController extends AbstractAction
$data = array('code' => 400, 'message' => '短信验证码错误', 'data' => '');
break;
}
$res = BindData::bindMobile($openId, $sourceType, $phoneNum, $areaCode, $password);
//$shoppingKey用于购物车信息同步
$shoppingKey = Helpers::getShoppingKeyByCookie();
$res = BindData::bindMobile($openId, $sourceType, $phoneNum, $areaCode, $password, $shoppingKey);
if (!isset($res['code'])) {
break;
}
... ... @@ -298,8 +299,9 @@ class BindController extends AbstractAction
$data = array('code' => 400, 'message' => '短信验证码错误', 'data' => '');
break;
}
$res = BindData::relateMobile($openId, $sourceType, $phoneNum, $areaCode);
//$shoppingKey用于购物车信息同步
$shoppingKey = Helpers::getShoppingKeyByCookie();
$res = BindData::relateMobile($openId, $sourceType, $phoneNum, $areaCode, $shoppingKey);
if (!isset($res['code'])) {
break;
}
... ...