edit-sylive-item_detail

This commit is contained in:
lccsw
2022-11-10 16:39:22 +08:00
parent fa661958f5
commit 64c7715fd2
3 changed files with 9 additions and 5 deletions
+3 -1
View File
@@ -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){
+5 -3
View File
@@ -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, '验证码已发送');
}
+1 -1
View File
@@ -110,7 +110,7 @@
content: response.msg
});
if(response.code==200){
that.countDownTime(61)
that.countDownTime(91)
}
},'json')
}