smsHandle = new Sms('yunxin', [ 'sms_account' => sys_config('sms_account'), 'sms_token' => sys_config('sms_token'), 'site_url' => sys_config('site_url') ]); } /** * 短信记录页面 * @return string */ public function index() { if (!$this->smsHandle->isLogin()) return redirect(url('sms.smsConfig/index').'?type=4&tab_id=18'); return $this->fetch(); } /** * 获取短信记录列表 */ public function recordList() { $where = UtilService::getMore([ ['page', 1], ['limit', 20], ['type', ''], ['uid', ''], ['phone', ''], ]); return JsonService::successlayui(SmsRecordModel::getRecordList($where)); } }