shish 2 年之前
父节点
当前提交
79c7da34b0
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      biz/wx/classes/WxMessageClass.php

+ 3 - 1
biz/wx/classes/WxMessageClass.php

@@ -234,6 +234,8 @@ class WxMessageClass extends BaseClass
         $orderSn = $cg->orderSn ?? '';
         $num = $cg->printNum ?? 0;
         $ptStyle = $shop->ptStyle;
+        $ghsName = $cg->ghsName ?? '';
+        $ghsName = substr($ghsName, 0, 5);
         $staffName = $cg->shopAdminName ?? '';
         $wxBase = WxOpenClass::getWxBase();
         $wx = $wxBase[$ptStyle] ?? [];
@@ -259,7 +261,7 @@ class WxMessageClass extends BaseClass
                     "url" => Yii::$app->params['ghsDomain'],
                     "data" => [
                         "character_string20" => ["value" => $orderSn],
-                        "thing10" => ["value" => '供货商订单'],
+                        "thing10" => ["value" => $ghsName],
                         "thing17" => ["value" => "采购单打印了{$num}次"],
                         "thing23" => ["value" => $staffName],
                     ]