shish 5 lat temu
rodzic
commit
5da0cfd0cf
1 zmienionych plików z 5 dodań i 1 usunięć
  1. 5 1
      common/components/sms.php

+ 5 - 1
common/components/sms.php

@@ -53,7 +53,11 @@ class sms
     //自由发短,无ip和数量限制 ssh 2019.12.24
     public static function freeSend($mobile, $msg, $merchant = null)
     {
-        $open = WxOpenService::getById(1);
+        $ptStyle = dict::getDict('ptStyle', 'hd');
+        if (isset(Yii::$app->params['ptStyle'])) {
+            $ptStyle = Yii::$app->params['ptStyle'];
+        }
+        $open = WxOpenService::getById($ptStyle);
         $name = isset($open['name']) ? $open['name'] : '花卉宝';
         $sign = isset($merchant) == true ? "【{$merchant['name']}】" : "【{$name}】";
         $msg .= $sign;