Commit 19f7d517 authored by christ's avatar christ

master

parent 3e574cc0
......@@ -37,7 +37,7 @@ class UserController extends \Our\Controller_AbstractIndex {
if(!empty($seller)){
$mobile=$seller['memberMobile'];
$mobile=$sellerName;
$isStore=$this->memberService->getOneByStoreId($seller['storeId']);
if(empty($isStore)){
\Error\ErrorModel::throwException(\Error\CodeConfigModel::storeIsRefuse);
......@@ -47,8 +47,9 @@ class UserController extends \Our\Controller_AbstractIndex {
}else{
\Error\ErrorModel::throwException(\Error\CodeConfigModel::errorUsernameOrPassword);
}
$member= $this->memberService->getOneByMobileAndPassword($mobile,$password);
if($this->memberService->checkUserNamePassWord($member['member_mobile'],$password)){
if($this->memberService->checkUserNamePassWord($sellerName,$password)){
$member= $this->memberService->getOneByMobileAndPassword($mobile,$password);
//$member= $this->memberService->getOneByMobileAndPassword($mobile,$password);
// //第二步保存扫码会员信息
// $result = $this->memberService->saveStoreMembers($member['member_id']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment