<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                使用 Composer 安裝 * 在項目中的 composer.json 文件中添加 jpush 依賴: `"require": { "jpush/jpush": "^3.5" }` (* ̄︶ ̄) 然后就可以開始編寫代碼啦! ~~~ namespace app\extendService; use JPush\Client as JPush; use think\Db; use think\Exception; class JpushService{ const APP_KEY = '************************';//極光創建應用后的app_key const MASTER_SECRET = '************************';//極光創建應用后的master_secret public function send(string $content, int $push_type = 0, string $target = null, array $extras = null) { //實例化jpush $jpush = new JPush(self::APP_KEY, self::MASTER_SECRET, null); //推送平臺 $client = $jpush->push()->setPlatform('all'); //推送目標 $push_type == 0 && $client->addAllAudience(); //推送所有 $push_type == 1 && $client->addTag($target); //標簽推送 OR關系 $push_type == 2 && $client->addTagAnd($target); //標簽推送 AND關系 $push_type == 3 && $client->addAlias($target); //別名推送 $push_type == 4 && $client->addRegistrationId($target); //注冊ID推送 $iosParam = [ 'sound' => 'sound', 'badge' => '+1', //ios推送圖標+1 ]; !empty($extras) && $iosParam['extras'] = $extras; $androidParam = !empty($extras) ? ['extras' => $extras] : []; //設置推送具體值 $client ->AndroidNotification($content, $androidParam) ->iosNotification($content, $iosParam) ->message($content, $androidParam);//為了讓Android在打開app時不用點擊推送消息程序即可接收到 return $client->send(); } } ~~~ 注:具體推送方式請查看官方API文檔
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看