|
|
@@ -3208,8 +3208,8 @@ class PublicRpcService implements PublicRpcServiceInterface
|
|
|
$tempalte['index'] = $this->randomPage($data, $cate_num, $ruleIndex);
|
|
|
$data['page'] = 2;
|
|
|
$ruleClass = json_decode($rule->class_rule);
|
|
|
- $class_cate_num = $query->where('pid','!=',0)->groupBy('pid')->selectRaw('pid, count(*) as count')->get()->pluck('count','pid');
|
|
|
- $cate_num = max($class_cate_num);
|
|
|
+ // $class_cate_num = $query->where('pid','!=',0)->groupBy('pid')->selectRaw('pid, count(*) as count')->get()->pluck('count','pid');
|
|
|
+ // $cate_num = max($class_cate_num);
|
|
|
$tempalte['class'] = $this->randomPage($data, $cate_num, $ruleClass);
|
|
|
$data['page'] = 3;
|
|
|
$ruleList = json_decode($rule->list_rule);
|