client; $mobile = $this->request->post('mobile'); $key = $this->request->post('key'); (new SmsSend())->goCheck('', ['mobile' => $mobile, 'key' => $key,'client' => $client,'user_id' => $this->user_id]); $result = SmsLogic::send($mobile, $key, $this->user_id); if (true === $result) { return JsonServer::success('发送成功'); } return JsonServer::error('发送失败'); } }