diff --git a/home/controllers/h5/market/sylive/Item.php b/home/controllers/h5/market/sylive/Item.php index 23627be5..7d7cb54f 100644 --- a/home/controllers/h5/market/sylive/Item.php +++ b/home/controllers/h5/market/sylive/Item.php @@ -57,7 +57,9 @@ class Item extends Wx{ $ac_user = $this->act_user_model->get(['id'=>$this->act_uid]); if($ac_user['channelId']){ $channel_user = $this->act_user_model->get(['userId'=>$ac_user['channelId'],'activityId'=>$a_id]); - $channel_user['bizId'] && $need_shop = 0; + if($channel_user['bizId'] && $channel_user['organizationId']){ + $need_shop = 0; + } } $biz_arr = $city_arr = $province_arr = []; if($need_shop){ diff --git a/home/controllers/h5/market/sylive/Login.php b/home/controllers/h5/market/sylive/Login.php index bc02a2ea..890f554a 100644 --- a/home/controllers/h5/market/sylive/Login.php +++ b/home/controllers/h5/market/sylive/Login.php @@ -29,6 +29,7 @@ class Login extends CI_Controller{ $this->show_json('',400,'用户已禁用'); } $_SESSION['market_sylive_session'] = ['uid' => $user['userId'],'org_id'=>$user['organizationId'],'teamId'=>$user['teamId']]; + $redis->delete($key); $this->show_json('',200,'登录成功'); }else{ $wx_info = $_SESSION[self::WX_SESSION]; @@ -104,13 +105,14 @@ class Login extends CI_Controller{ } $redis = &load_cache('redis'); $key = "sylive_login_code_".$mobile; - if(!$redis->get($key)){ + $code = $redis->get($key); + if(!$code){ $this->load->helper('string'); $code = random_string('numeric', 4); $redis->save($key, $code, 60*5); - $content = "【好店云】您的验证码为: {$code},请勿泄露于他人!"; - b2m_send_sms($mobile,$content); } + $content = "【好店云】您的验证码为: {$code},五分钟之内有效,请勿泄露于他人,!"; + b2m_send_sms($mobile,$content); $this->show_json('',200, '验证码已发送'); } diff --git a/home/views/h5/market/sylive/login.php b/home/views/h5/market/sylive/login.php index 2b51bab2..4aed5e25 100644 --- a/home/views/h5/market/sylive/login.php +++ b/home/views/h5/market/sylive/login.php @@ -110,7 +110,7 @@ content: response.msg }); if(response.code==200){ - that.countDownTime(61) + that.countDownTime(91) } },'json') }