|
@@ -801,6 +801,7 @@ public class FsStorePaymentScrmServiceImpl implements IFsStorePaymentScrmService
|
|
|
}
|
|
|
byte[] file;
|
|
|
try {
|
|
|
+
|
|
|
file = wxMaService.getQrcodeService().createWxaCodeBytes(
|
|
|
"pages_user/user/pay?companyId="+param.getCompanyId(),
|
|
|
"release",
|
|
@@ -809,6 +810,15 @@ public class FsStorePaymentScrmServiceImpl implements IFsStorePaymentScrmService
|
|
|
null,
|
|
|
true);
|
|
|
|
|
|
+// file = wxMaService.getQrcodeService().createWxaCodeBytes(
|
|
|
+// "pages_user/user/pay?"+scene,
|
|
|
+// "release",
|
|
|
+// 430,
|
|
|
+// true,
|
|
|
+// null,
|
|
|
+// true);
|
|
|
+
|
|
|
+
|
|
|
// 上传图片到存储桶
|
|
|
String suffix = ".png";
|
|
|
CloudStorageService storage = OSSFactory.build();
|
|
@@ -820,7 +830,7 @@ public class FsStorePaymentScrmServiceImpl implements IFsStorePaymentScrmService
|
|
|
logger.error("生成图片失败:{}",e.getMessage(),e);
|
|
|
return R.error("生成图片失败");
|
|
|
}
|
|
|
- redisCache.setCacheObject("company-wxa-code:"+param.getCompanyId(),url);
|
|
|
+ redisCache.setCacheObject("company-wxa-code:"+param.getCompanyId()+":appId"+param.getAppId(),url);
|
|
|
// 返回成功信息
|
|
|
return R.ok().put("url",url);
|
|
|
|
|
@@ -854,7 +864,6 @@ public class FsStorePaymentScrmServiceImpl implements IFsStorePaymentScrmService
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
//生成支付流水
|
|
|
String orderSn = IdUtil.getSnowflake(0, 0).nextIdStr();
|
|
|
FsStorePaymentScrm storePayment=new FsStorePaymentScrm();
|
|
@@ -881,6 +890,7 @@ public class FsStorePaymentScrmServiceImpl implements IFsStorePaymentScrmService
|
|
|
o.setReqSeqId("payment-"+storePayment.getPayCode());
|
|
|
o.setTransAmt(storePayment.getPayMoney().toString());
|
|
|
o.setGoodsDesc("商城订单支付");
|
|
|
+ o.setAppId(param.getAppId());
|
|
|
HuifuCreateOrderResult result = huiFuService.createOrder(o);
|
|
|
if(result.getResp_code()!=null&&(result.getResp_code().equals("00000000")||result.getResp_code().equals("00000100"))){
|
|
|
FsStorePaymentScrm mt=new FsStorePaymentScrm();
|