app->db->name('DataUser')->where(['id' => $uid])->find(); if (empty($user)) throw new Exception("指定用户[{$uid}]不存在"); $this->app->log->notice("开始处理用户[{$user['id']}]月度[{$this->date}]返利"); $this->user = $user; // $this->_prize_02(); } }