|
|
@@ -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;
|