正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
@@ -391,8 +391,8 @@ class Business extends Base | @@ -391,8 +391,8 @@ class Business extends Base | ||
391 | ->field('a.*,b.address,b.name,b.phone') | 391 | ->field('a.*,b.address,b.name,b.phone') |
392 | ->where($where)->find(); | 392 | ->where($where)->find(); |
393 | //验证 | 393 | //验证 |
394 | - $r1 = Db::name('_verification_staff')->where(['user_id'=>$user_id,'type'=>'0','verification_store_id'=>$store_id])->find(); | ||
395 | - if(empty($r1)){ return $this->error('仅店长可查自己店铺信息'); } | 394 | + //$r1 = Db::name('_verification_staff')->where(['user_id'=>$user_id,'type'=>'0','verification_store_id'=>$store_id])->find(); |
395 | + //if(empty($r1)){ return $this->error('仅店长可查自己店铺信息'); } | ||
396 | //当前店铺下的代理人,及代理人的推广数量 | 396 | //当前店铺下的代理人,及代理人的推广数量 |
397 | $rows = Db::name('_verification_staff')->where(['verification_store_id'=>$store_id,'type'=>['in',['0','1','3']]])->field("name,0 as count,user_id")->paginate(20)->each(function($item){ | 397 | $rows = Db::name('_verification_staff')->where(['verification_store_id'=>$store_id,'type'=>['in',['0','1','3']]])->field("name,0 as count,user_id")->paginate(20)->each(function($item){ |
398 | $item['count'] = Db::name('user')->where(['pid'=>$item['user_id']])->count(); | 398 | $item['count'] = Db::name('user')->where(['pid'=>$item['user_id']])->count(); |
@@ -424,8 +424,8 @@ class Business extends Base | @@ -424,8 +424,8 @@ class Business extends Base | ||
424 | //参数 | 424 | //参数 |
425 | $param = request()->param(); | 425 | $param = request()->param(); |
426 | //验证 | 426 | //验证 |
427 | - if(empty($param['date'])){$param['date'] = date("Y-m-d"); } | ||
428 | - $dates = [strtotime($param['date']." 00:00:00"),strtotime($param['date']." 23:59:59")]; | 427 | + //if(empty($param['date'])){$param['date'] = date("Y-m-d"); } |
428 | + //$dates = [strtotime($param['date']." 00:00:00"),strtotime($param['date']." 23:59:59")]; | ||
429 | $r1 = Db::name('_verification_staff')->where(['user_id'=>$user_id,'type'=>'0','verification_store_id'=>$store_id])->find(); | 429 | $r1 = Db::name('_verification_staff')->where(['user_id'=>$user_id,'type'=>'0','verification_store_id'=>$store_id])->find(); |
430 | if(empty($r1)){ return $this->error('仅店长可查自己店铺信息'); } | 430 | if(empty($r1)){ return $this->error('仅店长可查自己店铺信息'); } |
431 | //当前店铺下的代理人,及代理人的推广数量 | 431 | //当前店铺下的代理人,及代理人的推广数量 |
-
请 注册 或 登录 后发表评论