无关风月
2025-03-21 6903c41af2520b23809ca90e9a211e738de2c224
部分代码
4个文件已修改
28 ■■■■■ 已修改文件
ruoyi-service/ruoyi-management/pom.xml 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-service/ruoyi-management/src/main/java/com/ruoyi/management/controller/TProtocolController.java 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-service/ruoyi-study/pom.xml 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-service/ruoyi-study/src/main/java/com/ruoyi/study/service/impl/TUserServiceImpl.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-service/ruoyi-management/pom.xml
@@ -27,9 +27,7 @@
        <dependency>
            <groupId>com.huawei.apigateway</groupId>
            <artifactId>java-sdk-core</artifactId>
            <version>3.2.5</version>
            <scope>system</scope>
            <systemPath>${project.basedir}/lib/java-sdk-core-3.2.5.jar</systemPath>
            <version>3.2.4</version>
        </dependency>
        <dependency>
            <groupId>com.huaweicloud</groupId>
ruoyi-service/ruoyi-management/src/main/java/com/ruoyi/management/controller/TProtocolController.java
@@ -6,9 +6,7 @@
import com.ruoyi.management.service.ITProtocolService;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
@@ -20,7 +18,7 @@
 * @author 无关风月
 * @since 2024-04-26
 */
@Controller
@RestController
@RequestMapping("/tProtocol")
public class TProtocolController {
@@ -38,6 +36,12 @@
        return R.ok(protocolService.lambdaQuery().eq(TProtocol::getType, type)
                .eq(TProtocol::getDisabled, 0).one());
    }
    @PostMapping("/home1")
    @ApiOperation(value = "用户协议/隐私协议/注销协议", tags = {"用户协议/隐私协议/注销协议"})
    public R<TProtocol> home1(@RequestParam Integer type) {
        return R.ok(protocolService.lambdaQuery().eq(TProtocol::getType, type)
                .eq(TProtocol::getDisabled, 0).one());
    }
}
ruoyi-service/ruoyi-study/pom.xml
@@ -66,9 +66,7 @@
        <dependency>
            <groupId>com.huawei.apigateway</groupId>
            <artifactId>java-sdk-core</artifactId>
            <version>3.2.5</version>
            <scope>system</scope>
            <systemPath>${project.basedir}/lib/java-sdk-core-3.2.5.jar</systemPath>
            <version>3.2.4</version>
        </dependency>
        <dependency>
            <groupId>org.apache.commons</groupId>
@@ -200,13 +198,6 @@
            </plugin>
        </plugins>
        <resources>
            <resource>
                <directory>lib</directory>
                <targetPath>/BOOT-INF/lib/</targetPath>
                <includes>
                    <include>**/*.jar</include>
                </includes>
            </resource>
            <resource>
                <directory>src/main/resources</directory>
            </resource>
ruoyi-service/ruoyi-study/src/main/java/com/ruoyi/study/service/impl/TUserServiceImpl.java
@@ -47,6 +47,7 @@
    @Autowired
    private HWSendSms hwSendSms;
    @Override
    public Boolean phoneCode(String phone) throws Exception {
        // 生成随机 6位数字 验证码