|
|
@@ -1,14 +1,12 @@
|
|
|
package com.zhongshu.card.server.core.service.paySetting;
|
|
|
|
|
|
-import com.github.microservice.auth.security.type.AuthType;
|
|
|
+import com.github.microservice.net.ResultContent;
|
|
|
import com.github.microservice.net.ResultMessage;
|
|
|
import com.github.microservice.types.payment.PayFieldType;
|
|
|
import com.github.microservice.types.payment.PaymentType;
|
|
|
-import com.github.microservice.net.ResultContent;
|
|
|
import com.zhongshu.card.client.model.paySetting.payConfig.LaKaLaCollectionConfig;
|
|
|
import com.zhongshu.card.client.model.paySetting.payConfig.LaKaLaCollectionConfigParam;
|
|
|
import com.zhongshu.card.client.model.paySetting.paySetting.*;
|
|
|
-import com.zhongshu.card.client.model.projectAbout.PayChannelConfigModel;
|
|
|
import com.zhongshu.card.client.type.DataState;
|
|
|
import com.zhongshu.card.server.core.dao.org.OrganizationDao;
|
|
|
import com.zhongshu.card.server.core.dao.projectAbout.PayChannelConfigDao;
|
|
|
@@ -27,10 +25,8 @@ import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.data.mongodb.gridfs.GridFsTemplate;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
-import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
-import java.util.Base64;
|
|
|
import java.util.List;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
@@ -427,7 +423,7 @@ public class ProjectPaySettingServiceImpl extends SuperService {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 得到项目的对应支付渠道的 参数配置
|
|
|
+ * 得到项目的对应支付渠道的 参数配置 (验证是否一切正常)
|
|
|
*
|
|
|
* @param projectOid
|
|
|
* @param paymentType
|
|
|
@@ -456,11 +452,10 @@ public class ProjectPaySettingServiceImpl extends SuperService {
|
|
|
return ResultContent.buildFail(String.format("项目 %s未启动", payName));
|
|
|
}
|
|
|
|
|
|
- // 配置的
|
|
|
- ProjectPaySettingInfo paySettingInfo = projectPaySettingInfoDao.findTopByProjectOidAndChannelTypeAndIsDefault(
|
|
|
- projectOid, paymentType, Boolean.TRUE);
|
|
|
+ // 参数的配置 (默认状态的)
|
|
|
+ ProjectPaySettingInfo paySettingInfo = projectPaySettingInfoDao.findTopByProjectOidAndChannelTypeAndIsDefault(projectOid, paymentType, Boolean.TRUE);
|
|
|
if (ObjectUtils.isEmpty(paySettingInfo)) {
|
|
|
- return ResultContent.buildFail(String.format("%s没有默认的支付参数", payName));
|
|
|
+ return ResultContent.buildFail(String.format("%s没有默认的支付配置", payName));
|
|
|
}
|
|
|
return ResultContent.buildSuccess(paySettingInfo);
|
|
|
}
|