|
@@ -550,7 +550,12 @@ public class FsStorePaymentServiceImpl implements IFsStorePaymentService {
|
|
|
TransferBatchesRequest request = new TransferBatchesRequest();
|
|
|
request.setAppid(config.getAppId());
|
|
|
|
|
|
- String code = IdUtil.getSnowflake(0, 0).nextIdStr();
|
|
|
+ // todo 如果未配置负载均衡请还原原本的单号方式
|
|
|
+// String code = IdUtil.getSnowflake(0, 0).nextIdStr();
|
|
|
+ String code = OrderCodeUtils.getOrderSn();
|
|
|
+ if(StringUtils.isEmpty(code)){
|
|
|
+ return R.error("红包单号生成失败,请重试");
|
|
|
+ }
|
|
|
request.setOutBatchNo("fsCourse" + code);
|
|
|
request.setBatchRemark("课堂答题奖励");
|
|
|
request.setBatchName("课堂答题奖励");
|