瀏覽代碼

bugfix:管理端订单导出商品名乱码修复

kevin_zhangl 3 年之前
父節點
當前提交
baf3279882
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      common/helpers/Tool.php

+ 3 - 0
common/helpers/Tool.php

@@ -370,6 +370,9 @@ class Tool {
         if (preg_match('/\,/', $text)){
         if (preg_match('/\,/', $text)){
             $text = preg_replace('/\,/', '|', $text);
             $text = preg_replace('/\,/', '|', $text);
         }
         }
+        if (preg_match('/[\x{FF08}-\x{FF09}]/u', $text)){
+            $text = preg_replace('/\,/', '|', $text);
+        }
         // 只有是中文时才需要转码
         // 只有是中文时才需要转码
         if (!preg_match('/[\x{4e00}-\x{9fa5}]/u', $text)) {
         if (!preg_match('/[\x{4e00}-\x{9fa5}]/u', $text)) {
             return $text;
             return $text;