国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

? ?? ??? ?? ?? WeChat ?? ??? ???? ?? ?? ?? ?? ??

WeChat ?? ??? ???? ?? ?? ?? ?? ??

Jun 16, 2017 am 10:00 AM

? ???? ??? ?? ?? ?? ??? ?? ?? ?? ?? ?? ??? ?? ?????. ??? ??? ??? ? ????.

1. ??? ??? ???? js-sdk ?????? ?????. ???? ?? ?? ??? ?? ?? WeChat ?? ??? ???? (?? URL: http://gaoboy.com/article/25.html)

2. ???? ?? ?? ??? ?? ??? ? ?? ? ??? ?? ????. ?? ???? ??? ?? ??? ???? ??? ??? ?? ?? ?????. (??? ?? ???? ?? ??? ?? ????????)

js-sdk ?? ??? ??:

1. ?? URL, ?????, ?? ??? ? jsapiticket? ?????.

 //調(diào)用js-sdk的簽名包
 public function getSignPackage() {
 $jsapiTicket = $this->getJsApiTicket();
 // 注意 URL 一定要?jiǎng)討B(tài)獲取,不能 hardcode.(獲取當(dāng)前網(wǎng)頁(yè)的url)
 $protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://";
 $url = "$protocol$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
 //時(shí)間戳
 $timestamp = time();
 //隨機(jī)字符串獲取
 $nonceStr = $this->createNonceStr();
 // 這里參數(shù)的順序要按照 key 值 ASCII 碼升序排序
 $string = "jsapi_ticket=$jsapiTicket&noncestr=$nonceStr&timestamp=$timestamp&url=$url";
 //生成字符串是用來(lái)簽名用的
 $signature = sha1($string);
 $signPackage = array(
  "appId"  => $this->appid,
  "nonceStr" => $nonceStr,
  "timestamp" => $timestamp,
  "url"  => $url,
  "signature" => $signature,
  "rawString" => $string
 );
 return $signPackage; 
 }

?? ?? ?? ??? ??:

//使用會(huì)員卡領(lǐng)取的簽名包
 public function getHuiYuanSignPackage() {
 $apiTicket = $this->getApiTicket();
 // 注意 URL 一定要?jiǎng)討B(tài)獲取,不能 hardcode.(獲取當(dāng)前網(wǎng)頁(yè)的url)
 $protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://";
 $url = "$protocol$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
 //時(shí)間戳
 $timestamp = time();
 //隨機(jī)字符串獲取
 // $nonceStr = $this->createNonceStr();
 // 這里參數(shù)的順序要按照 key 值 ASCII 碼升序排序
 $string = $timestamp.$apiTicket."pVYA_t3RCVF_yhNcO6QCeAmb-1UI";
 //生成字符串是用來(lái)簽名用的
 $signature = sha1($string);
 $signPackage = array(
  "timestamp" => $timestamp,
  "signature" => $signature,
 );
 return $signPackage; 
 }

??? ?? ??:

HTML ???:

  //引入微信js文件
   <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/JavaScript">
//配置信息驗(yàn)證接口(填寫(xiě)的js-sdk獲取的簽名包的參數(shù))
wx.config({
 debug: false,
 appId: &#39;<?PHP echo $signPackage["appId"];?>&#39;,
 timestamp: &#39;<?php echo $signPackage["timestamp"];?>&#39;,
 nonceStr: &#39;<?php echo $signPackage["nonceStr"];?>&#39;,
 signature: &#39;<?php echo $signPackage["signature"];?>&#39;,
 jsApiList: [
  // 所有要調(diào)用的 API 都要加到這個(gè)列表中
  &#39;addCard&#39;
  ]
   });
wx.ready(function(){
        //添加卡券
    document.querySelector(&#39;#addCard&#39;).onclick = function () {
     wx.addCard({
      cardList: [
      {
       cardId: "",//微信公眾號(hào)內(nèi)創(chuàng)建的會(huì)員卡的id
       cardExt: &#39;{"timestamp":"<?php echo $huiyuanPackage[&#39;timestamp&#39;] ?>","signature":"<?php echo $huiyuanPackage[&#39;signature&#39;] ?>"}&#39;//會(huì)員卡的簽名包
      }
      ],
     //成功之后的回調(diào)的函數(shù)(通過(guò)回調(diào)函數(shù)該表數(shù)據(jù)庫(kù)是否領(lǐng)取會(huì)員卡的狀態(tài))
      success: function (res) {
      $.ajax({
      url: &#39;__CONTROLLER__/editHuiYuan&#39;,
      type: &#39;post&#39;,
      dataType: &#39;json&#39;,
      data: {is_LingQu: &#39;1&#39;,user_id:"<?php echo $user[&#39;user_id&#39;] ?>"},
      success:function(){
      $("#addCard").html("我的會(huì)員卡");
      }
      })
      }
     });
    };
   });
</script>

????? ??:

??? ?????: http://www.jb51.net /article /115732.htm

 public function index(){
 $user_id = session(&#39;user_id&#39;);
  if($user_id){
  $jssdk = new \Home\Model\WechatModel();
  $signPackage = $jssdk->GetSignPackage();//獲取js-sdk簽名包
  $huiyuanPackage = $jssdk->getHuiYuanSignPackage();獲取會(huì)員卡簽名包
  //獲取用戶(hù)信息 
  $user = M(&#39;user&#39;)->where(array(&#39;user_id&#39; => $user_id))->find();
  //產(chǎn)品收藏?cái)?shù)量統(tǒng)計(jì)
  $goods_count = M(&#39;goods_shoucang&#39;)->where(array(&#39;user_id&#39; => $user_id))->count();
  //門(mén)店收藏?cái)?shù)量統(tǒng)計(jì)
  $shop_count = M(&#39;shop_shoucang&#39;)->where(array(&#39;user_id&#39; => $user_id))->count();
  }else{
  //判斷該用戶(hù)是否存在
  $model = new \Home\Model\WechatModel();
  $openid_accesstoken = $model->openId();
  $rst = M(&#39;user&#39;)->where(array(&#39;user_openid&#39; => $openid_accesstoken[&#39;openid&#39;]))->find();
  if($rst){
   session(&#39;openid&#39;,$openid_accesstoken[&#39;openid&#39;]);
   session(&#39;user_id&#39;, $rst[&#39;user_id&#39;]);
   $jssdk = new \Home\Model\WechatModel();
   $signPackage = $jssdk->GetSignPackage();
   $huiyuanPackage = $jssdk->getHuiYuanSignPackage();
   //獲取用戶(hù)信息 
   $user = M(&#39;user&#39;)->where(array(&#39;user_id&#39; => $rst[&#39;user_id&#39;]))->find();
   //產(chǎn)品收藏?cái)?shù)量統(tǒng)計(jì)
   $goods_count = M(&#39;goods_shoucang&#39;)->where(array(&#39;user_id&#39; => $rst[&#39;user_id&#39;]))->count();
   //門(mén)店收藏?cái)?shù)量統(tǒng)計(jì)
   $shop_count = M(&#39;shop_shoucang&#39;)->where(array(&#39;user_id&#39; => $rst[&#39;user_id&#39;]))->count();
  }else{
   $userInfo = $model->getOpenId($openid_accesstoken[&#39;openid&#39;],$openid_accesstoken[&#39;access_token&#39;]);
     $data = array(
      &#39;user_img&#39; => $userInfo[&#39;headimgurl&#39;],
      &#39;user_openid&#39; => $userInfo[&#39;openid&#39;],
      &#39;user_name&#39; => filter($userInfo[&#39;nickname&#39;]),
      &#39;user_register_time&#39; => time(),
      &#39;city&#39; => $userInfo[&#39;province&#39;].&#39;-&#39;.$userInfo[&#39;city&#39;],
     );
   $id = M(&#39;user&#39;)->add($data);
   session(&#39;openid&#39;, $userInfo[&#39;openid&#39;]);
   session(&#39;user_id&#39;,$id);
   $jssdk = new \Home\Model\WechatModel();
   $signPackage = $jssdk->GetSignPackage();
   $huiyuanPackage = $jssdk->getHuiYuanSignPackage();
   //獲取用戶(hù)信息 
   $user = M(&#39;user&#39;)->where(array(&#39;user_id&#39; => $id))->find();
   //產(chǎn)品收藏?cái)?shù)量統(tǒng)計(jì)
   $goods_count = M(&#39;goods_shoucang&#39;)->where(array(&#39;user_id&#39; => $id))->count();
   //門(mén)店收藏?cái)?shù)量統(tǒng)計(jì)
   $shop_count = M(&#39;shop_shoucang&#39;)->where(array(&#39;user_id&#39; => $id))->count();
   }
  }
  $this->assign(&#39;signPackage&#39;, $signPackage);
  $this->assign(&#39;huiyuanPackage&#39;, $huiyuanPackage);
  $this->assign(&#39;user&#39;, $user);
  $this->assign(&#39;shop_count&#39;, $shop_count);
  $this->assign(&#39;goods_count&#39;, $goods_count);
  $this->display();
 }

? ??? WeChat ?? ??? ???? ?? ?? ?? ?? ??? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? ????? ??
? ?? ??? ????? ???? ??? ??????, ???? ?????? ????. ? ???? ?? ???? ?? ??? ?? ????. ???? ??? ???? ???? ??? ?? admin@php.cn?? ?????.

? AI ??

Undresser.AI Undress

Undresser.AI Undress

???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover

AI Clothes Remover

???? ?? ???? ??? AI ?????.

Video Face Swap

Video Face Swap

??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

???

??? ??

???++7.3.1

???++7.3.1

???? ?? ?? ?? ???

SublimeText3 ??? ??

SublimeText3 ??? ??

??? ??, ???? ?? ????.

???? 13.0.1 ???

???? 13.0.1 ???

??? PHP ?? ?? ??

???? CS6

???? CS6

??? ? ?? ??

SublimeText3 Mac ??

SublimeText3 Mac ??

? ??? ?? ?? ?????(SublimeText3)

???

??? ??

??? ????
1601
29
PHP ????
1502
276
???
Tiktok ? ?? ?? ??? ?? ?? ?? https tiktok ? ?? ?? ? ??? ?? Tiktok ? ?? ?? ??? ?? ?? ?? https tiktok ? ?? ?? ? ??? ?? May 22, 2025 pm 04:24 PM

Douyin ? ??? ??? ??? https://www.douyin.com/???. ??? ???? ??? ?????. 1. ???? ??; 2. URL https://www.douyin.com/? ??????. 3. "???"??? ???? ??? ??? ??????. 4. ?? ????? ??????. 5. ?? ???. ? ??? ????, ??, ?? ??, ??? ??? ? ?? ???? ??? ?? ??? ???? ?? ??? ??, ?? ???, ??? ?? ?? ? ??? ??? ?? ??? ????.

COPY COMICS (?? ? ??? ??) _Copy Comics (NBA) ??? ??? ?? ?? COPY COMICS (?? ? ??? ??) _Copy Comics (NBA) ??? ??? ?? ?? Jun 05, 2025 pm 04:12 PM

??? ???? ?? ?? ? ???? ?? ????? ?????. ???? ????? ????? ?? ????? ???? ???? ? ?? ???? ????? ??? ???? ?? ??? ?? ? ????. ???? ????? ??? ??? ???? ??? ???? ??? ???? ? ????. Copy Comics?? ???? ?? ??? ?? ??? ?? ?? ??? ?? ??? ?? ?? ?????, ???? ???? ?? ??? ???, ???? ?? ??? ???? ??? ?? ??? ??? ? ????.

UC ???? ?? QQ ????? ?? ?? ? ????? UC ? QQ ????? ?? ?? ? ???? UC ???? ?? QQ ????? ?? ?? ? ????? UC ? QQ ????? ?? ?? ? ???? May 22, 2025 pm 08:33 PM

UC ???? ?? QQ ????? ???? ?? ??? ?? ????. 1. UC ????? ???? ? ??? ?????? ??? ???? ????? ?????. 2. QQ ????? Tencent ???? ???? ??? ??? ??? ????? ?????.

AI Writing Software? ?? ? ?? 10 ?? AI ?? ????? ??? ?????. AI Writing Software? ?? ? ?? 10 ?? AI ?? ????? ??? ?????. Jun 04, 2025 pm 03:27 PM

2025 ? ?? ?? ???? ??? ?? ???? ??? ??? ?? ??? ? ??? ???? ????? ?? ??, ?? ?? ? ?? ???? ?? ?? ????? ??? ?? 10 ?? ??? ? AI ?? ????? ?? ?????.

?? ??? ?? NIS ??? ?? ???? ????? ??????. NIS Comics ??? ???? ?? ?? ? ??? ?? ??? ?? NIS ??? ?? ???? ????? ??????. NIS Comics ??? ???? ?? ?? ? ??? Jun 12, 2025 pm 08:18 PM

?? ???? ?? ?? ?? ?? ? ?? ?? ??? ? Nice Comics? ????? ?? ??? ?? ??? ?????. ?? ?? ??? ?? ? ??? ?? ???? ??? ???? ?? ??? ???? ??????????. ???? ??? ? ????? ???? ??? ?? ??? ?? NES Comics? ???? ???? ??? ?? ?? ? ??? ???? ??? ?? ??? ?? ? ????. ???? ???? ???? ??? ??? ?? ?????, ?? ??? ??? ?? ???? ?? ??? ??????!

??? ? ??? ?? ?? ?? ??? ?? (? ??? ??) ??? ?? ??? ? ??? ?? ?? ?? ??? ?? (? ??? ??) ??? ?? Jun 12, 2025 pm 08:06 PM

Frogman Comics? ???? ??? ?? ??? ???? ??? ??? ?? ??? ?? ?? ?? ?????? ? ?? ????????. ??? ???? ???? ???? ???? ???? ??? ???? ????? ???? ??? ??? ????. ??? ?? ??? ??? ? ???? ??? ??, ??? ? ?? ???? ???? ??? ????? ??? ??? ??? ????. ?? ??? ???? ???? ?? ???? ??? ?? ? ????. ???? ??? ? ????? ???? ?? ?? ???? ?? ?? ??? ??? ?? ?? ??? ?? ??? ?? ? ? ????.

Baozi Comics (??) _ Baozi Comics (New Entrance) 2025 Baozi Comics (??) _ Baozi Comics (New Entrance) 2025 Jun 05, 2025 pm 04:18 PM

???, ??? ??? ? ?? ???? ???? ???? ?? ??, ????? ??? ?? ???? ???? ???? ???? ?? ??? ????? ??? ??? ???? ?? ? ??? ??? ??? ??? ???? ??? ?? ? ? ????. ??? ?? ??? ?? ??? ??????? ??? ?? ??? ????? ???? ?????? ??? ? ?? ???? ??? ?? ? ??? ???????.

b ?? ?? ?? _ ?? ?? b ?? b ?? ?? ?? _ ?? ?? b ?? May 26, 2025 pm 07:12 PM

2025b Anhui? ?? ?? ? ???? ??? ????. https://www.marketwebb.co/zh-cn/join?ref=507720986&amp;type=wenzi; Binance Exchange? ??, ??, ??, ??, ?? ? ????? ? 180 ??? ??? ???? ???? ??? ?? ?? ??????. 600 ?? ?? ?? ??? ???? ? ????? 2 ? 7 ?? ?? ?? ? ???? ???? ????.

See all articles