|
@@ -7,6 +7,7 @@ namespace App\Console\Commands\Push;
|
|
|
use App\Consts\PushConst;
|
|
|
use App\Libs\Push\HuaWei\HwPushCommon;
|
|
|
use App\Libs\Push\OPPOPush\OPPOPushCommon;
|
|
|
+use App\Libs\Push\VPush\VPush;
|
|
|
use App\Libs\Push\XMPush\MiPushCommon;
|
|
|
use App\Modules\Push\Models\QappPushApp;
|
|
|
use App\Modules\Push\Models\QappPushUser;
|
|
@@ -107,6 +108,18 @@ class PushTest extends Command
|
|
|
$client->setRegArr($regIdList);
|
|
|
$result = $client->broadCastRegIds($messageId);
|
|
|
break;
|
|
|
+ // VIVO
|
|
|
+ case PushConst::PROVIDER_VIVO:
|
|
|
+ // 初始化oppo推送
|
|
|
+ $client = new VPush($appId, $appKey, $appSecret);
|
|
|
+
|
|
|
+ // 设置相关推送数据,保存消息内容
|
|
|
+ $client->setPushData($title, $content, $url, $regIdList);
|
|
|
+ $client->saveListPayload();
|
|
|
+
|
|
|
+ // 循环推送
|
|
|
+ $result = $client->sendMessage();
|
|
|
+ break;
|
|
|
}
|
|
|
} catch (Exception $e) {
|
|
|
var_dump($e->getMessage());
|