Merge remote-tracking branch 'origin/master'

This commit is contained in:
Tankaikai 2025-03-05 16:49:10 +08:00
commit bdecc4542e
1 changed files with 2 additions and 5 deletions

View File

@ -5,10 +5,7 @@ import com.czg.resp.CzgResult;
import com.czg.service.account.util.AliOssUtil;
import jakarta.annotation.Resource;
import org.apache.commons.io.FilenameUtils;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
/**
@ -28,7 +25,7 @@ public class CommonController {
* @param type 验证码类型
* @return 是否成功
*/
@PostMapping("/sms")
@GetMapping("/sms")
public CzgResult<Boolean> sendSms(@RequestParam String type) {
return CzgResult.success(commonService.sendSms(type));
}