|
@@ -17,6 +17,7 @@ import com.fs.common.annotation.DataScope;
|
|
|
import com.fs.common.config.FSSysConfig;
|
|
import com.fs.common.config.FSSysConfig;
|
|
|
import com.fs.common.core.domain.R;
|
|
import com.fs.common.core.domain.R;
|
|
|
import com.fs.common.core.redis.RedisCache;
|
|
import com.fs.common.core.redis.RedisCache;
|
|
|
|
|
+import com.fs.common.utils.CloudHostUtils;
|
|
|
import com.fs.common.utils.DateUtils;
|
|
import com.fs.common.utils.DateUtils;
|
|
|
import com.fs.common.utils.StringUtils;
|
|
import com.fs.common.utils.StringUtils;
|
|
|
import com.fs.company.domain.Company;
|
|
import com.fs.company.domain.Company;
|
|
@@ -802,22 +803,24 @@ public class FsStorePaymentScrmServiceImpl implements IFsStorePaymentScrmService
|
|
|
}
|
|
}
|
|
|
byte[] file;
|
|
byte[] file;
|
|
|
try {
|
|
try {
|
|
|
-
|
|
|
|
|
- file = wxMaService.getQrcodeService().createWxaCodeBytes(
|
|
|
|
|
- "pages_user/user/pay?companyId="+param.getCompanyId(),
|
|
|
|
|
- "release",
|
|
|
|
|
- 430,
|
|
|
|
|
- true,
|
|
|
|
|
- null,
|
|
|
|
|
- true);
|
|
|
|
|
-
|
|
|
|
|
-// file = wxMaService.getQrcodeService().createWxaCodeBytes(
|
|
|
|
|
-// "pages_user/user/pay?"+scene,
|
|
|
|
|
-// "release",
|
|
|
|
|
-// 430,
|
|
|
|
|
-// true,
|
|
|
|
|
-// null,
|
|
|
|
|
-// true);
|
|
|
|
|
|
|
+ if(CloudHostUtils.hasCloudHostName("鸿森堂")){
|
|
|
|
|
+ file = wxMaService.getQrcodeService().createWxaCodeBytes(
|
|
|
|
|
+ "pages_user/user/pay?" + scene,
|
|
|
|
|
+ "release",
|
|
|
|
|
+ 430,
|
|
|
|
|
+ true,
|
|
|
|
|
+ null,
|
|
|
|
|
+ true);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ file = wxMaService.getQrcodeService().createWxaCodeBytes(
|
|
|
|
|
+ "pages_user/user/pay?companyId=" + param.getCompanyId(),
|
|
|
|
|
+ "release",
|
|
|
|
|
+ 430,
|
|
|
|
|
+ true,
|
|
|
|
|
+ null,
|
|
|
|
|
+ true);
|
|
|
|
|
+ }
|
|
|
|
|
+ logger.info("生成的二维码参数:{}", "pages_user/user/pay?" + scene);
|
|
|
|
|
|
|
|
|
|
|
|
|
// 上传图片到存储桶
|
|
// 上传图片到存储桶
|
|
@@ -831,7 +834,11 @@ public class FsStorePaymentScrmServiceImpl implements IFsStorePaymentScrmService
|
|
|
logger.error("生成图片失败:{}",e.getMessage(),e);
|
|
logger.error("生成图片失败:{}",e.getMessage(),e);
|
|
|
return R.error("生成图片失败");
|
|
return R.error("生成图片失败");
|
|
|
}
|
|
}
|
|
|
- redisCache.setCacheObject("company-wxa-code:"+param.getCompanyId()+":"+param.getAppId(),url);
|
|
|
|
|
|
|
+ if(CloudHostUtils.hasCloudHostName("鸿森堂")){
|
|
|
|
|
+ redisCache.setCacheObject("company-wxa-code:" + param.getCompanyId() + ":" + param.getAppId() + ":" + param.getCompanyUserId(), url);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ redisCache.setCacheObject("company-wxa-code:" + param.getCompanyId() + ":" + param.getAppId(), url);
|
|
|
|
|
+ }
|
|
|
// 返回成功信息
|
|
// 返回成功信息
|
|
|
return R.ok().put("url",url);
|
|
return R.ok().put("url",url);
|
|
|
|
|
|