|
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
|
|
|
import com.fdkankan.common.constant.Constant;
|
|
|
import com.fdkankan.common.constant.ErrorCode;
|
|
|
import com.fdkankan.common.exception.BusinessException;
|
|
|
+import com.fdkankan.ucenter.common.EnLang;
|
|
|
import com.fdkankan.ucenter.common.constants.NacosProperty;
|
|
|
import com.fdkankan.ucenter.entity.DownloadOrder;
|
|
|
import com.fdkankan.ucenter.pay.factory.PayEntity;
|
|
@@ -41,7 +42,13 @@ public class PaypalDownload implements PayEntity {
|
|
|
if (downloadOrderEntity == null) {
|
|
|
throw new BusinessException(ErrorCode.FAILURE_CODE_8001);
|
|
|
}
|
|
|
- String subject = Constant.INCREMENT_SUBJECT + ":" + downloadOrderEntity.getCount() + "次";
|
|
|
+ String subject = EnLang.Scene_Download_en + ":" + downloadOrderEntity.getCount() + EnLang.next_en;
|
|
|
+ if("en".equals(order.getLang())){
|
|
|
+ subject = EnLang.Scene_Download_en + ":" + downloadOrderEntity.getCount() + EnLang.next_en;
|
|
|
+ }
|
|
|
+ if("cn".equals(order.getLang())){
|
|
|
+ subject = EnLang.Scene_Download_cn + ":" + downloadOrderEntity.getCount() + EnLang.next_cn;
|
|
|
+ }
|
|
|
String orderSn = downloadOrderEntity.getOrderSn();
|
|
|
orderSn += "_download";
|
|
|
String body = subject;
|