|
|
@@ -14,6 +14,8 @@ import com.fs.common.exception.file.OssException;
|
|
|
import com.fs.company.service.ICompanyMoneyLogsService;
|
|
|
import com.fs.company.service.ICompanyService;
|
|
|
import com.fs.company.service.ICompanyUserService;
|
|
|
+import com.fs.course.domain.FsCoursePlaySourceConfig;
|
|
|
+import com.fs.course.service.IFsCoursePlaySourceConfigService;
|
|
|
import com.fs.erp.service.IErpGoodsService;
|
|
|
import com.fs.erp.service.IErpOrderService;
|
|
|
import com.fs.erp.service.IErpShopService;
|
|
|
@@ -43,6 +45,7 @@ import com.tencentyun.TLSSigAPIv2;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
@@ -141,6 +144,9 @@ public class CommonScrmController extends AppBaseController {
|
|
|
@Autowired
|
|
|
IFsStorePaymentScrmService paymentService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IFsCoursePlaySourceConfigService fsCoursePlaySourceConfigService;
|
|
|
+
|
|
|
@ApiOperation("支付手动通知")
|
|
|
@GetMapping("payNotify")
|
|
|
public R payNotify(String payCode) throws Exception {
|
|
|
@@ -413,10 +419,19 @@ public class CommonScrmController extends AppBaseController {
|
|
|
|
|
|
@GetMapping(value = "/getConfigByKey")
|
|
|
@ApiOperation("获取配置")
|
|
|
- public R getConfigByKey(@RequestParam(value = "key", required = false) String key) {
|
|
|
- String config = configService.selectConfigByKey(key);
|
|
|
- return R.ok().put("data", config);
|
|
|
-
|
|
|
+ public R getConfigByKey(@RequestParam(value = "key", required = false) String key,@RequestParam(value = "appId",required = false) String appId)
|
|
|
+ {
|
|
|
+ if(StringUtils.isNotEmpty(appId) && "his.agreementConfig".equals(key)){
|
|
|
+ //获取APPID信息
|
|
|
+ String newKey = "ProtocolConfig:"+appId;
|
|
|
+ //获取小程序配置数据
|
|
|
+ String config = fsCoursePlaySourceConfigService.selectConfigByAppId(appId , newKey);
|
|
|
+ if(config != null){
|
|
|
+ return R.ok().put("data",config);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ String config=configService.selectConfigByKey(key);
|
|
|
+ return R.ok().put("data",config);
|
|
|
}
|
|
|
|
|
|
@ApiOperation("获取数据字典")
|