java110
2023-08-11 f67a8bfa2bd4895806bb1686e25df3a2eab8e771
优化代码
5个文件已修改
1 文件已重命名
20 ■■■■■ 已修改文件
service-acct/src/main/java/com/java110/acct/cmd/parkingCoupon/TeldSendParkingCouponCarCmd.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-api/src/main/java/com/java110/api/configuration/ServiceConfiguration.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-api/src/main/java/com/java110/api/controller/app/AppController.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-user/src/main/java/com/java110/user/cmd/login/QueryTokenForTeldCmd.java 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springboot/src/main/java/com/java110/boot/configuration/ServiceConfiguration.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springboot/src/main/java/com/java110/boot/controller/app/AppController.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-acct/src/main/java/com/java110/acct/cmd/parkingCoupon/TeldSendParkingCouponCarCmd.java
@@ -33,8 +33,12 @@
/**
 * 特来电同步车牌号给物业系统
 *
 *
 * /app/ext/parkingCoupon.teldSendParkingCouponCar/992020051967020024
 * /app/ext/login.getTokenForTeld/992020051967020024
 */
@Java110Cmd(serviceCode = "parkingCoupon.teldSendParkingCouponCar")
@Java110Cmd(serviceCode = "notification_charge_end_order_info")
public class TeldSendParkingCouponCarCmd extends Cmd {
    @Autowired
service-api/src/main/java/com/java110/api/configuration/ServiceConfiguration.java
@@ -14,6 +14,7 @@
    public FilterRegistrationBean jwtFilter() {
        StringBuffer exclusions = new StringBuffer();
        exclusions.append("/callComponent/login/*,");
        exclusions.append("/app/ext/992020051967020024/login.getTokenForTeld,");
        exclusions.append("/callComponent/register/*,");
        exclusions.append("/callComponent/validate-code/*,");
        exclusions.append("/callComponent/validate-tel/*,");
service-api/src/main/java/com/java110/api/controller/app/AppController.java
@@ -298,7 +298,7 @@
     * @return http status 200 成功 其他失败
     */
    @RequestMapping(path = "/ext/{serviceCode}/{appId}", method = RequestMethod.POST)
    @RequestMapping(path = "/ext/{appId}/{serviceCode}", method = RequestMethod.POST)
    @Java110Lang
    public ResponseEntity<String> extPost(
            @PathVariable String serviceCode,
service-user/src/main/java/com/java110/user/cmd/login/QueryTokenForTeldCmd.java
File was renamed from service-user/src/main/java/com/java110/user/cmd/login/GetTokenForTeldCmd.java
@@ -13,7 +13,6 @@
import com.java110.utils.constant.CommonConstant;
import com.java110.utils.exception.CmdException;
import com.java110.utils.util.Assert;
import com.java110.utils.util.DateUtil;
import com.java110.utils.util.StringUtil;
import com.java110.utils.util.TeldUtil;
import org.springframework.beans.factory.annotation.Autowired;
@@ -21,7 +20,6 @@
import org.springframework.http.ResponseEntity;
import java.text.ParseException;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -32,7 +30,7 @@
                "token 是这个接口返回的内容<br/> " +
                "会话保持为2小时,请快要到2小时时,再次登录,保持会话</br>",
        httpMethod = "post",
        url = "http://{ip}:{port}/app/ext/login.getTokenForTeld/{appId}",
        url = "http://{ip}:{port}/app/ext/{appId}/query_token",
        resource = "userDoc",
        author = "吴学文",
        serviceCode = "login.getTokenForTeld",
@@ -73,8 +71,8 @@
                "    \"Sig\": \"58E52010C7DEE87FE183B0AFA5B2BE30\"\n" +
                "}"
)
@Java110Cmd(serviceCode = "login.getTokenForTeld")
public class GetTokenForTeldCmd extends Cmd {
@Java110Cmd(serviceCode = "query_token")
public class QueryTokenForTeldCmd extends Cmd {
    public static String OPERATOR_SECRET = "1234567890abcdef"; //
springboot/src/main/java/com/java110/boot/configuration/ServiceConfiguration.java
@@ -14,6 +14,7 @@
    public FilterRegistrationBean jwtFilter() {
        StringBuffer exclusions = new StringBuffer();
        exclusions.append("/callComponent/login/*,");
        exclusions.append("/app/ext/992020051967020024/login.getTokenForTeld,");
        exclusions.append("/callComponent/register/*,");
        exclusions.append("/callComponent/validate-code/*,");
        exclusions.append("/callComponent/validate-tel/*,");
springboot/src/main/java/com/java110/boot/controller/app/AppController.java
@@ -343,7 +343,7 @@
     * @return http status 200 成功 其他失败
     */
    @RequestMapping(path = "/ext/{serviceCode}/{appId}/{communityId}", method = RequestMethod.POST)
    @RequestMapping(path = "/ext/{appId}/{serviceCode}", method = RequestMethod.POST)
    @Java110Lang
    public ResponseEntity<String> extPost(
            @PathVariable String serviceCode,