|
|
@@ -8,11 +8,11 @@ import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.yeepay.yop.sdk.service.common.response.YopResponse;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
-import lombok.NoArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.ObjectUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springblade.common.cache.PaymentCache;
|
|
|
+import org.springblade.common.constant.CallbackServeUrl;
|
|
|
import org.springblade.common.enums.AppConstant;
|
|
|
import org.springblade.common.enums.OrderType;
|
|
|
import org.springblade.common.enums.PaymentType;
|
|
|
@@ -40,13 +40,10 @@ import org.springblade.yeePay.entity.MerchantInfo;
|
|
|
import org.springblade.yeePay.entity.saas.PayLinkOrderDto;
|
|
|
import org.springblade.yeePay.service.YeePayService;
|
|
|
import org.springblade.yeePay.service.YeepaySaasService;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.context.ApplicationEventPublisher;
|
|
|
import org.springframework.core.env.Environment;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
-import javax.annotation.PostConstruct;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
|
|
|
|
@@ -72,18 +69,15 @@ public class YeePayPlugin implements Payment {
|
|
|
ITransferRecService transferRecService;
|
|
|
IAgentLeagueRecordService agentLeagueRecordService;
|
|
|
BladeLogger bladeLogger;
|
|
|
- Environment env;
|
|
|
|
|
|
@Override
|
|
|
public String callbackUrl(String paymentType) {
|
|
|
- String callbackDomain = env.getProperty("callback.domain");
|
|
|
- return callbackDomain + CALLBACK_PREFIX + paymentType;
|
|
|
+ return CallbackServeUrl.callbackServeUrl() + CALLBACK_PREFIX + paymentType;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public String csUrl(String paymentType) {
|
|
|
- String callbackDomain = env.getProperty("callback.domain");
|
|
|
- return callbackDomain + CSURL_PREFIX + paymentType;
|
|
|
+ return CallbackServeUrl.callbackServeUrl() + CSURL_PREFIX + paymentType;
|
|
|
}
|
|
|
|
|
|
|