post(); $this->success('返回成功', $this->request->param()); } /** * 无需登录的接口 * */ public function test1() { $this->success('返回成功', ['action' => 'test1']); } /** * 需要登录的接口 * */ public function test2() { $this->success('返回成功', ['action' => 'test2']); } /** * 需要登录且需要验证有相应组的权限 * */ public function test3() { $this->success('返回成功', ['action' => 'test3']); } public function sendSMS() { $alisms = new \addons\alisms\library\Alisms(); $config = get_addon_config('alisms'); $template = "SMS_463741027"; $sign = $config['sign']; $param = [ 'name' => "Soar", 'content' => "未通过审核,请根据审核内容修改后重新提交。" ]; $alisms->mobile(17633935176) ->template($template) ->sign($sign) ->param($param) ->send(); } public function delfile() { $ossClient = new OssClient("LTAI4Fq72VJX1kU4LuqtqD5Z", "fVNcV32xywj0nwaxygq2PpS0aobhKY", "oss-cn-shanghai.aliyuncs.com"); $deleteObject = $ossClient->deleteObject("ydool2017", "%E6%AF%94%E7%BF%BC%E9%A3%9E%E8%A1%8C%E7%BD%91//uploads/20231205/9eae1e5dab151ed9246c116717c6c009.png"); print_r($deleteObject);exit; } }