model = new ShopCategory(); } public function index(){ $score = Db::name('user')->where('id', 'not in', [7493267, 7493266])->where('user_type', 'not in', [4])->sum('score'); $this->assign('score', $score); $chizi = Db::name('coupon_plan_log')->where('state', 1)->where('uid', 'not in', [7493267,7493266])->sum('buy_num'); $this->assign('chizi', $chizi); return $this->fetch(); } }