|
|
|
@@ -5,10 +5,7 @@ import com.iformall.common.ErrorCode; |
|
|
|
import com.iformall.common.ResultData; |
|
|
|
import com.iformall.domain.po.*; |
|
|
|
import com.iformall.douyin.pay.enums.AppAddSubMerchantUrlType; |
|
|
|
import com.iformall.enums.EnumAppPlat; |
|
|
|
import com.iformall.enums.EnumMsgSend; |
|
|
|
import com.iformall.enums.EnumPayWay; |
|
|
|
import com.iformall.enums.EnumProfitSharingType; |
|
|
|
import com.iformall.enums.*; |
|
|
|
import com.iformall.service.*; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiImplicitParam; |
|
|
|
@@ -151,7 +148,7 @@ public class WxMerchantController extends BaseController { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@RedisCache(expireTime = 30) |
|
|
|
@RedisCache() |
|
|
|
@ApiOperation("获取进件/余额页面") |
|
|
|
@GetMapping("/getTtReceiverUrl") |
|
|
|
@ApiImplicitParam(name = "id", value = "id", dataType = "Long", paramType = "query", required = true) |
|
|
|
@@ -160,6 +157,10 @@ public class WxMerchantController extends BaseController { |
|
|
|
if(urlType == null || id == null){ |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(),"请检查传递参数"); |
|
|
|
} |
|
|
|
if(!EnumYesOrNo.YES.getCode().equals(getLoginBUser().getIsAdmin())){ |
|
|
|
return new ResultData(ErrorCode.SYS_AUTH_ERROR); |
|
|
|
} |
|
|
|
|
|
|
|
WxMerchant merchant = wxMerchantService.selectById(id); |
|
|
|
if(merchant == null){ |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(),"请检查传递参数"); |
|
|
|
|