validated(); $sms = new SmsCodeModel(); if (!$sms->send($params['mobile'], $params['event'])) { return AppResult::error($sms->getMessage()); } return AppResult::success('发送成功'); } }