|
@@ -496,14 +496,14 @@ public class OrderServiceImpl implements OrderService {
|
|
|
String logoUrl = "/statics/img/yto_logo.jpg";
|
|
|
|
|
|
Map<String, String> logoMap = new HashMap<>();
|
|
|
- logoMap.put("best", "/statics/img/yto_logo.jpg");
|
|
|
- logoMap.put("yto", "/statics/img/bestex_logo3.png");
|
|
|
- if (logoMap.containsKey(orderEntity.getShippingCode())) {
|
|
|
+ logoMap.put("yto", "/statics/img/yto_logo.jpg");
|
|
|
+ logoMap.put("best", "/statics/img/bestex_logo3.png");
|
|
|
+ if (StringUtils.isNotEmpty(orderEntity.getShippingCode()) && logoMap.containsKey(orderEntity.getShippingCode())) {
|
|
|
logoUrl = logoMap.get(orderEntity.getShippingCode());
|
|
|
}
|
|
|
|
|
|
mailInfo.setExprLogoUrl(logoUrl);
|
|
|
- byte[] barCode128 = BarcodeUtil.generateBarCode128(exprNo, null, null, true, false);
|
|
|
+ byte[] barCode128 = BarcodeUtil.generateBarCode128(exprNo, 6.0D, null, true, false);
|
|
|
String exprNoBase64Img = new String(Base64.getEncoder().encode(barCode128));
|
|
|
mailInfo.setShopTel("0752-2688660");
|
|
|
|
|
@@ -2198,31 +2198,31 @@ public class OrderServiceImpl implements OrderService {
|
|
|
|
|
|
// 设置支付单开始时间
|
|
|
processRecordEntity.setPaymentStartTime(new Date());
|
|
|
-// // 判断是微信的支付码还是支付宝的支付码
|
|
|
-// if (parCode.startsWith("28")) {
|
|
|
-// // 支付宝支付
|
|
|
-// try {
|
|
|
-// AliPay(user, parCode, order, processRecordEntity, orderWXPayRecordCurrent, store);
|
|
|
-// } catch (Exception e) {
|
|
|
-// e.printStackTrace();
|
|
|
-// throw e;
|
|
|
-// }
|
|
|
-// } else {
|
|
|
-// // 微信支付
|
|
|
-// try {
|
|
|
-// wxPay(user, parCode, resultObj, order, processRecordEntity, orderWXPayRecordCurrent, store);
|
|
|
-// } catch (Exception e) {
|
|
|
-// e.printStackTrace();
|
|
|
-// throw e;
|
|
|
-// }
|
|
|
-// }
|
|
|
+ // 判断是微信的支付码还是支付宝的支付码
|
|
|
+ if (parCode.startsWith("28")) {
|
|
|
+ // 支付宝支付
|
|
|
+ try {
|
|
|
+ AliPay(user, parCode, order, processRecordEntity, orderWXPayRecordCurrent, store);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ throw e;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ // 微信支付
|
|
|
+ try {
|
|
|
+ wxPay(user, parCode, resultObj, order, processRecordEntity, orderWXPayRecordCurrent, store);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ throw e;
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
- // TODO 到时候要注释掉,测试用而已
|
|
|
- OrderEntity orderEntity = queryObject(order.getId());
|
|
|
- orderEntity.setOrderStatus(Integer.parseInt(Dict.orderStatus.item_201.getItem()));
|
|
|
- orderEntity.setPayStatus(Integer.parseInt(Dict.payStatus.item_2.getItem()));
|
|
|
- orderEntity.setPayTime(new Date());
|
|
|
- orderDao.update(orderEntity);
|
|
|
+// // TODO 到时候要注释掉,测试用而已
|
|
|
+// OrderEntity orderEntity = queryObject(order.getId());
|
|
|
+// orderEntity.setOrderStatus(Integer.parseInt(Dict.orderStatus.item_201.getItem()));
|
|
|
+// orderEntity.setPayStatus(Integer.parseInt(Dict.payStatus.item_2.getItem()));
|
|
|
+// orderEntity.setPayTime(new Date());
|
|
|
+// orderDao.update(orderEntity);
|
|
|
|
|
|
|
|
|
resultObj.put("shopName", store.getStoreName()); // 根据门店编号查询
|