model = new \app\admin\model\sms\Variable; } public function getVar($id) { $val = Helper::calcVar($id); if ($val) { $this->success('', $val); } $this->error('计算失败,请检查变量设置'); } }