public function actionSmsMember($mobile = '18971288549') { // \Yii::$app->wx->setGhId(\app\models\MGh::GH_XIANGYANGUNICOM); // $long_url = 'http://wosotech.com/wx/web/index.php?r=wapx/sm-qr'.'&mobile='.$mobile; // $short_url = \Yii::$app->wx->WxGetShortUrl($long_url); // $content = '【襄阳联通】诚邀您关注襄阳联通官方微信号,点击下面链接直接成为会员,专享特权!'.$short_url; //// $content = '【沃手科技】'.substr($short_url, 7); // \app\models\sm\ESmsGuodu::yjhu_test($mobile, $content); \app\models\SmsMarketingConfig::run(); }
public static function smsMarketing($times = 1) { for ($i = 0; $i < $times; $i++) { \app\models\SmsMarketingConfig::run(); } }