作者 王晓刚
1 个管道 的构建 通过 耗费 22 秒

合并分支 'wxg' 到 'master'

修改问题文档



查看合并请求 !97
@@ -290,14 +290,14 @@ class Goods extends Frontend @@ -290,14 +290,14 @@ class Goods extends Frontend
290 } 290 }
291 $data[$key]['insurance'] = $insurance; 291 $data[$key]['insurance'] = $insurance;
292 //当前用户若不是会员加密部分信息 292 //当前用户若不是会员加密部分信息
293 - if($encrypt == '2'){ 293 + /*if($encrypt == '2'){
294 $text = ''; 294 $text = '';
295 if(empty($user_id)){ 295 if(empty($user_id)){
296 $text = "(请您先登录)"; 296 $text = "(请您先登录)";
297 } 297 }
298 $data[$key]['store_phone'] = "***********$text"; 298 $data[$key]['store_phone'] = "***********$text";
299 $data[$key]['store_address'] = "***********$text"; 299 $data[$key]['store_address'] = "***********$text";
300 - } 300 + }*/
301 //计算平均分 301 //计算平均分
302 $score_count = $evaluateModel->where(['goods_id'=>$vo['id']])->count(); 302 $score_count = $evaluateModel->where(['goods_id'=>$vo['id']])->count();
303 $score_sum = $evaluateModel->where(['goods_id'=>$vo['id']])->sum('level'); 303 $score_sum = $evaluateModel->where(['goods_id'=>$vo['id']])->sum('level');
@@ -54,10 +54,10 @@ class Shop extends Frontend @@ -54,10 +54,10 @@ class Shop extends Frontend
54 } 54 }
55 $data['is_collect'] = $is_collect; 55 $data['is_collect'] = $is_collect;
56 //当前用户若不是会员加密部分信息 56 //当前用户若不是会员加密部分信息
57 - if($encrypt == '2'){ 57 + /*if($encrypt == '2'){
58 $data['phone'] = "***********"; 58 $data['phone'] = "***********";
59 $data['address'] = "***********"; 59 $data['address'] = "***********";
60 - } 60 + }*/
61 $this->assign('data',$data); 61 $this->assign('data',$data);
62 // dump(collection($data)->toArray()); 62 // dump(collection($data)->toArray());
63 if($this->request->isAjax()){ 63 if($this->request->isAjax()){
@@ -121,6 +121,10 @@ class User extends Frontend @@ -121,6 +121,10 @@ class User extends Frontend
121 if($result['password'] != $password){ 121 if($result['password'] != $password){
122 $this->error('密码错误'); 122 $this->error('密码错误');
123 } 123 }
  124 + $user = Db::name('user')->where(['id'=>$result['id']])->find();
  125 + if($user['status'] != 'normal'){
  126 + $this->error('抱歉,您已被加入黑名单');
  127 + }
124 $arr3['logintime'] = time(); 128 $arr3['logintime'] = time();
125 $arr3['loginip'] = $this->request->ip(0, true); 129 $arr3['loginip'] = $this->request->ip(0, true);
126 $result3 = $userModel->updateData(['id'=>$result['id']],$arr3); 130 $result3 = $userModel->updateData(['id'=>$result['id']],$arr3);
@@ -164,6 +168,10 @@ class User extends Frontend @@ -164,6 +168,10 @@ class User extends Frontend
164 if($data['code'] != $code){ 168 if($data['code'] != $code){
165 $this->error('验证码错误'); 169 $this->error('验证码错误');
166 } 170 }
  171 + $user = Db::name('user')->where(['id'=>$result1['id']])->find();
  172 + if($user['status'] != 'normal'){
  173 + $this->error('抱歉,您已被加入黑名单');
  174 + }
167 $arr3['logintime'] = time(); 175 $arr3['logintime'] = time();
168 $arr3['loginip'] = $this->request->ip(0, true); 176 $arr3['loginip'] = $this->request->ip(0, true);
169 $result3 = $userModel->updateData(['id'=>$result1['id']],$arr3); 177 $result3 = $userModel->updateData(['id'=>$result1['id']],$arr3);
@@ -337,12 +345,12 @@ class User extends Frontend @@ -337,12 +345,12 @@ class User extends Frontend
337 } 345 }
338 // $token = generate_user_token($result1); 346 // $token = generate_user_token($result1);
339 // session('token',$token); 347 // session('token',$token);
340 - $this->auth->direct($result1); 348 + $this->auth->direct($data['id']);
341 $token = $this->auth->getToken(); 349 $token = $this->auth->getToken();
342 session('token',$token); 350 session('token',$token);
343 Cookie::set('token',$token); 351 Cookie::set('token',$token);
344 Db::commit(); 352 Db::commit();
345 - $this->success('SUCCESS','user/login_view'); 353 + $this->success('SUCCESS','index/index');
346 } 354 }
347 355
348 /** 356 /**
@@ -107,7 +107,7 @@ @@ -107,7 +107,7 @@
107 <!--首页内容--> 107 <!--首页内容-->
108 <div class="content"> 108 <div class="content">
109 <div class="contentMain"> 109 <div class="contentMain">
110 - <h1>都在用的工业品购销平台</h1> 110 + <div style="color:rgba(255,255,255,1);font-size: 40px;text-align: center;margin: 130px 0 30px 0;"><b>都在用的工业品购销平台</b></div>
111 <!--搜索框--> 111 <!--搜索框-->
112 <div class="searchBox"> 112 <div class="searchBox">
113 <input id="searchVal" type="text" class="search" placeholder="请输入型号、参数查找元器件" onkeypress="carriage(event)" /> 113 <input id="searchVal" type="text" class="search" placeholder="请输入型号、参数查找元器件" onkeypress="carriage(event)" />
@@ -359,7 +359,7 @@ @@ -359,7 +359,7 @@
359 testVerificationCode(); 359 testVerificationCode();
360 testPassword(); 360 testPassword();
361 testCheckbox(); 361 testCheckbox();
362 - if(!testPassword() || !testUserName() || !testPhoneNum() || testVerificationCode() || testCheckbox()){ 362 + if(!testPassword() || !testUserName() || !testPhoneNum() || !testVerificationCode() || !testCheckbox()){
363 return false; 363 return false;
364 } 364 }
365 var username = $('#userName').val(); 365 var username = $('#userName').val();