|
@@ -46,6 +46,7 @@ import me.chanjar.weixin.mp.bean.template.WxMpTemplateMessage;
|
|
|
import me.chanjar.weixin.mp.config.impl.WxMpDefaultConfigImpl;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
+import org.springframework.cloud.commons.util.IdUtils;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -89,7 +90,7 @@ public class PayController extends HttpServlet {
|
|
|
}
|
|
|
PayOrder payOrder = new PayOrder();
|
|
|
// payOrder.setTraceNo(company.getId().toString());
|
|
|
- payOrder.setTraceNo(IdUtil.randomUUID().replace("-", ""));
|
|
|
+ payOrder.setTraceNo(IdUtil.simpleUUID());
|
|
|
payOrder.setSubject("购买公司使用权账号");
|
|
|
payOrder.setTimeExpire(LocalDateTime.now().plusMinutes(30));
|
|
|
// payOrder.setTotalAmount(company.getThisMoney().doubleValue());
|