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

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                - token獲取 ~~~ $token = WeAccount::token(); ~~~ - - 加載類 ~~~ $weixin = weixinpay::create('wechat'); $userinfo = $weixin->getOauthInfo(); ~~~ ~~~ load()->model('mc'); $wechat = $_W['account']['setting']['payment']['wechat'];//支付設置 $wechat =(!empty($wechat['borrow']))? uni_setting($wechat['borrow'], array('payment'))['payment']['wechat']:$wechat; ~~~ 長網址轉換短網址 ~~~ load()->classs('weixin.account'); $acc = WeiXinAccount::create($_W['acid']); $url = $acc->long2short("http://www.baidu.com")['short_url']; ~~~ 文件上傳,返回media_id ~~~ if(is_file(ATTACHMENT_ROOT."/1.jpg")){ $path ="1.jpg"; }else{ load()->func('file'); file_move(MODULE_ROOT."/1.jpg",ATTACHMENT_ROOT."/1.jpg"); $path ="1.jpg"; } load()->classs('weixin.account'); $acc = WeiXinAccount::create($_W['acid']); $media = $acc->uploadMedia($path); dump($media); Array ( [type] => image [media_id] => 4IftJVo5o-qS2hm0Q0ID-_m5VARGL2eqKsgT1ih7v63SA8pULoqplVzIEU4hdt7y [created_at] => 1515481289 ) ~~~ 下載文件 ~~~ load()->classs('weixin.account'); $acc = WeiXinAccount::create($_W['acid']); $arr = ['media_id'=>"4IftJVo5o-qS2hm0Q0ID-_m5VARGL2eqKsgT1ih7v63SA8pULoqplVzIEU4hdt7y",'type'=>"image"]; $media = $acc->downloadMedia($arr); //images/5/2018/01/4IftJVo5o-qS2hm0Q0ID-_m5VARGL2eqKsgT1ih7v63SA8pULoqplVzIEU4hdt7y.jpg 返回路徑 ~~~ 讀取與寫入實實配置 ~~~ $config = pdo_getcolumn('uni_account_modules',[ 'module' => 模塊名, 'uniacid' => $_W['uniacid'] ],'settings'); $config = iunserializer($config); pdo_update('uni_account_modules',[ 'settings' =>iserializer($config), ], [ 'module' =>模塊名, 'uniacid' => $_W['uniacid'] ]); ~~~ ? ? ?發送客服消息 ~~~ $info = "我是客服消息:\n 歡迎使用"; $openid = "ocUeXwINHvRqWPSldYZVO4dA_CzI"; $message = [ 'msgtype'=>'text', 'text'=>['content'=>urlencode($info)], 'touser'=>$openid ]; $acc = WeAccount::create(); $status = $acc->sendCustomNotice($message); if (is_error($status)) { message('發送失敗,原因為' . $status['message']); } $message = [ 'touser' => $openid, 'msgtype' => 'image', 'image' =>['media_id'=> 'MEDIA_ID']//微信素材media_id,微擎中微信上傳組件可以得到此值 ]; $message = [ 'touser' => $openid, 'msgtype' => 'music', 'music' => [ 'title' => '標題', 'description' => '描述' 'musicurl' => '音樂文件URL', 'hqmusicurl' => '高清音樂文件URL', 'thumb_media_id' => 'MEDIA_ID', ] ]; $message = [ 'touser' => $openid, 'msgtype' => 'news', 'news' =>[ [ 'title' => '標題', 'description' => '描述', 'url' : '鏈接', 'picurl' : '封面圖片地址' ], [ 'title' => '標題1', 'description' => '描述1', 'url' : '鏈接', 'picurl' : '封面圖片地址' ], ] ]; $message = [ 'touser' => $openid, 'msgtype' => 'wxcard', 'wxcard' => ['card_id'=> 'CARD_ID'] ]; ~~~ ? ? ?發送模板消息 ~~~ $tpl_id = "QDDIbJpHEann2VeN12r6GXf0OiTJMky8uL4FAK2zAp8"; $openid = "ocUeXwINHvRqWPSldYZVO4dA_CzI"; $url = ""; $arr =[]; $sendarr =['測試通知標題','西安大學','管理員','2018-4-28','商城決定展示關閉','點擊查看詳情']; $tpl = '{{first.DATA}} 學校:{{keyword1.DATA}} 通知人:{{keyword2.DATA}} 時間:{{keyword3.DATA}} 通知內容:{{keyword4.DATA}}'; preg_match_all('/{{(.*).DATA}}/',$tpl,$rs); foreach($rs[1] as $k=>$v){ $arr[$v] = array( 'value'=>$sendarr[$k] ); } $arr['first']['color']='#04be02'; $arr['remark']['color']='#18b4ed'; $acc = WeAccount::create(); $status = $acc->sendTplNotice($openid,$tpl_id, $arr, $url); //1表示發送成功 ~~~ ? ? ?獲取用戶信息oauth ? ? ?~~~ load()->classs('weixin.account'); $acc = WeiXinAccount::create($_W['acid']); ? ?$userinfo =$acc->fansQueryInfo($openid); ? ? ? ? ?~~~
                  <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>

                              哎呀哎呀视频在线观看