Răsfoiți Sursa

打票样式修改

qinxuyang 1 lună în urmă
părinte
comite
4f4769a4bb

+ 0 - 9
alien-job/src/main/java/shop/alien/job/feign/AlienStoreFeign.java

@@ -114,13 +114,4 @@ public interface AlienStoreFeign {
     @org.springframework.web.bind.annotation.PostMapping("/store/productDiscount/job/autoCloseExpiredCustomRules")
     R<Integer> autoCloseExpiredProductDiscountRules();
 
-    /**
-     * 特约商户进件:申请单号查询申请状态(转发微信 GET .../applyment_id/{applyment_id})。
-     * 需在配置中提供 {@code feign.alienStore.url} 指向 alien-store 根地址。
-     *
-     * @param applymentId 微信支付申请单号
-     */
-    @GetMapping("/payment/wechatPartner/v3/applyment4sub/applyment/applyment_id/{applyment_id}")
-    R<Map<String, Object>> queryWechatPartnerApplymentState(@PathVariable("applyment_id") Long applymentId);
-
 }

+ 6 - 4
alien-store/src/main/java/shop/alien/store/service/impl/PrintTemplate.java

@@ -397,9 +397,11 @@ public class PrintTemplate {
         } else {
             String full = titleName.isEmpty() ? value : (titleName + ":" + value);
             if ("center".equals(align)) {
-                core = center(full, lineWidth).trim();
+                // 不可 trim:center() 靠前导空格居中,trim 会抵消对齐
+                core = center(full, lineWidth);
             } else if ("right".equals(align)) {
-                core = alignRight(full, lineWidth).trim();
+                // 不可 trim:alignRight() 靠前导空格右对齐
+                core = alignRight(full, lineWidth);
             } else {
                 core = titleName.isEmpty() ? truncateToWidth(value, lineWidth) : kvColon(titleName, value, lineWidth).trim();
             }
@@ -431,9 +433,9 @@ public class PrintTemplate {
         }
         String core;
         if ("center".equals(align)) {
-            core = center(text, lineWidth).trim();
+            core = center(text, lineWidth);
         } else if ("right".equals(align)) {
-            core = alignRight(text, lineWidth).trim();
+            core = alignRight(text, lineWidth);
         } else {
             core = truncateToWidth(text, lineWidth);
         }