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

? ?? ??? ?? ?? IOS? WeChat ?? ??? ?? ?? ??? ?????.

IOS? WeChat ?? ??? ?? ?? ??? ?????.

Mar 27, 2017 pm 02:19 PM
ios

??? ?? ???, ??, ??, ?? ? ??? ?? ???? ??????. ??? WeChat ??? ??? ??????? ???? ??? ???????. ??? ??? ?? ??? ? ????

1. WeChat ??? ??

WeChat OAuth2.0 ??? ???? ?? WeChat ???? WeChat ID? ???? ?3? ?????? ?? ????? ???? ???? ? ????. WeChat ???? WeChat OAuth2.0? ???? ? ?? ?3? ??????? ?? ???? ???? ?3?? access_token? ?? ??? ????? ?? ?? ??(access_token)? ?? ? ???, WeChat ??? ??? ?? ?? ?????? ???? WeChat ???? ?? ?? ??? ?? ???? ?? ?? ??? ????? ?? ? ????.

2. WeChat ?? ??

WeChat ???? ?3?? ??? ??? ? ?3?? WeChat ?? ??? ??? ?????. ?? ??????, WeChat? ??????? ????? ?3? ????? ?????? ?? ?? ?? ?? ????? ?????.

?? ????? ?? AppID ? AppSecret? ???? API? ?? access_token? ?????.

access_token ??? ?? ?????? ???? ?? ??? ??? ??? ???? ?? ??? ????? ????.

3. ?? ??

WeChat ???? ???? ?? ? ?? ?? ??? ?????.

??? ??? WeChat ??? ??? ?????. ??? ??? ????. iOS ??? ???

WeChat ??? ??? ??? ?? ??? ? ?? ?? ?? ????.

3.1. plist ??? ??? ?? ?????.

IOS? WeChat ?? ??? ?? ?? ??? ?????.

App Transport ?? ??

New iOS9? ? ?? ??(??? ATS) ??? ?? ?? ??? ??? HTTP? ??? ?? TLS1.2 ????? ????? ???. ?? ?? ?? HTTP ????? ??? ?? HTTPS ????? ???? ?? ?????. Info.plist?? ATS? ???? ?? ??? ???? ???:


<key>NSAppTransportSecurity</key>
<dict>
 <key>NSAllowsArbitraryLoads</key>
 <true/>
</dict>

??? ?? HTTP ??? ?????

4. WeChat ??? ? ?? ??: ?? ??

?????? ??? ??? ????, ???? ??? ???? WeChat ?? ??? ?????.

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


-(IBAction)sendAuthRequest
{ 
 //構(gòu)造SendAuthReq結(jié)構(gòu)體 
 SendAuthReq* req =[[[SendAuthReq alloc ] init ] autorelease ];
 req.scope = @"snsapi_userinfo" ;
 req.state = WXPacket_State ;//用于在OnResp中判斷是哪個(gè)應(yīng)用向微信發(fā)起的授權(quán),這里填寫(xiě)的會(huì)在OnResp里面被微信返回
 //第三方向微信終端發(fā)送一個(gè)SendAuthReq消息結(jié)構(gòu)
 [WXApi sendReq:req]; 
}

4.1 ???? ??

IOS? WeChat ?? ??? ?? ?? ??? ?????.

4.2. WeChat ?? ??? ??

IOS? WeChat ?? ??? ?? ?? ??? ?????.

4.3.

IOS? WeChat ?? ??? ?? ?? ??? ?????.

5. WeChat ?? 2??: ??? ?? access_token, openid, Unionid ????

? ?? ??? ??? ?? ? access_token, openid, Unionid? ?? ?? ?? ??? ??????:


https://api.weixin.qq.com/sns/ oauth2/access_token?

appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code

?? ??? ?? WeChat ?? ???? ????, ???? ???? ???? ???? ?? ??? ?????. WeChat ????? OnResp ??? ?????.

AppDelegate.m ??? ?? ??? ??? ????.


//微信代理方法
- (void)onResp:(BaseResp *)resp
{
  SendAuthResp *aresp = (SendAuthResp *)resp;
  if(aresp.errCode== 0 && [aresp.state isEqualToString:WXPacket_State])
  {
   NSString *code = aresp.code;
   [self getWeiXinOpenId:code];
  }
}
//通過(guò)code獲取access_token,openid,unionid
- (void)getWeiXinOpenId:(NSString *)code{
 NSString *url =[NSString stringWithFormat:@"https://api.weixin.qq.com/sns/oauth2/access_token?appid=%@&secret=%@&code=%@&grant_type=authorization_code",AppId,AppSerect,code];
 dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
  NSURL *zoneUrl = [NSURL URLWithString:url];
  NSString *zoneStr = [NSString stringWithContentsOfURL:zoneUrl encoding:NSUTF8StringEncoding error:nil];
  NSData *data = [zoneStr dataUsingEncoding:NSUTF8StringEncoding];
  dispatch_async(dispatch_get_main_queue(), ^{
   if (data){
    NSDictionary *dic = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:nil];
    NSString *openID = dic[@"openid"];
    NSString *unionid = dic[@"unionid"];
   }
  });
 });
}

5.1 ?? ??:

IOS? WeChat ?? ??? ?? ?? ??? ?????.

5.2.??? ?? ?? ?? ?? ??

IOS? WeChat ?? ??? ?? ?? ??? ?????.

5.2.1. ?? ??

IOS? WeChat ?? ??? ?? ?? ??? ?????.

6. WeChat ?? 3??: access_token? ?? ???? ??

6.1. ????? ??

? ?????? ??? ????? ???? ? ?????. ?? . ???? OpenID? ?? ???? ??? ??? ?? ? ????. ?? ??? ?? ???? ??? ??? ??????, ???? ??????, ?? ??? ???? ?? ??, ??? WeChat ?? ??? ????????? ???? ?? ???? Unionid? ???? ???? ???? ??? ? ??? ????. ??? ??? ??, ???? ?????? ? ?? ???? ???? ??? ID? ?????. ?, ??? ???? ?? ??? WeChat ?? ???? ??? ??????? ?? Unionid? ?????. ???? WeChat ???? ??? ??? ?? WeChat ??? URL? ?????? ???? WeChat ??? URL? ???? ? ????? ??? ???? ?? ??? ??? ?? ? ??? ???? ???? ???.

?? ?????

http ?? ??: GET

?? ??: https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID

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

IOS? WeChat ?? ??? ?? ?? ??? ?????.

? ??? IOS? 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
???
Apple iOS 18? ? ?? ???? ??? ??, WeChat ?? ? ?? ??? ?? ??? ???????. Apple iOS 18? ? ?? ???? ??? ??, WeChat ?? ? ?? ??? ?? ??? ???????. Jun 13, 2024 pm 09:39 PM

?? WWDC? ??????, iOS18? ??? ?? ?? ?? ??? ??? ?????. ?? ?? ??? ????? iOS18?? ?????? ???? ???, ??? ??? ???? ???? ???? ??? ??. ?? ???? "??? ?? ?? ???" iOS18? ?????? ? ???? ??? ?????. ?? ???? iPhone? ?? ???? ? ?? ???? ??? ?? ??? iOS18? ??????? ?? ?? ??? ?????. ?? ?? ?? ??? ? ?? ??? ??? ??????: 1. ??? ??? ??? ???? ???? ???? ????. 2. ??? ?? ?????? ?? ?????. 3. Douyin ?? ???? ???? ? ????. 4. WeChat ??? ?? ??? ?????. 10?. 5. ?? ??? ??? ??? ?? ????.

Apple? iOS/iPadOS 18 ?? 4 ????? ?? ???? ?? ??? 22A5316k? ??????. Apple? iOS/iPadOS 18 ?? 4 ????? ?? ???? ?? ??? 22A5316k? ??????. Jul 27, 2024 am 11:06 AM

??? ????? ??? Ji Yinkesi, xxx_x, ?? ???, Terrence, ?? ?? ?????? ??????! 7? 27? ??? ??? Apple? ?? ???? ?? iOS/iPadOS 18 ?? 4 ????? ?? ??????. ?? ?? ??? 22A5316j?? 22A5316k? ??????????. ?? ? ?? 4 ?? ????? ???? ??????. ??? ???? "??" ?? ?? "????? ????" ??? ???? "?? ????" ??? ??? ?? iOS18/iPadOS18 ??? ?? ??? ???? ?? ??? ??? ? ????. ?? ??? ?????? ????? ??? ??? ??? Apple ID? ?????. 7? 24? iO? ???

???? | ??? EU ??? iPad? Epic Games Store? Fortnite? ???? ??? ?????. ???? | ??? EU ??? iPad? Epic Games Store? Fortnite? ???? ??? ?????. Aug 18, 2024 am 06:34 AM

????: Saunders Tech? EU ??? iPad? Fortnite ? Epic Games Store? ???? ??? ???? ????? YouTube ??(??? ??? ???)? ???????. ??? ?????? ?? ?? ??? iO? ??? ?? ???

Apple, iOS 18? ??? ?? ???? ?? ?? Swift ??? ?? Apple, iOS 18? ??? ?? ???? ?? ?? Swift ??? ?? Jul 31, 2024 pm 01:10 PM

7? 31? ??? ???, Apple? ??(30?) ?? ??? ?? Swift ????? ???? ?? ???? ???? ?? ??? ?? ?? Swift ???(swift-homomorphic-encryption)? ??? ??????. ??: HE(????)? ???? ???? ??? ???? ??? ????? ?????. ?, ???? ?????? ? ???? ?? ?? ??? ????, ?? ??? ?? ??? ??? ?????. ?? ?? ?? ?? ?? ???? ?? ??? ???? ?? ??? ??? ?? ???? ???? "??? ??"? ???? ?? ????. ???? ??? ????? ?? ?? ???? ?? ????? ???? ?? ???? ???? ??? ? ????.

Haqu K2 ????? ??? ??? ?? ????? Haqu K2 ????? ??? ??? ?? ????? Jul 24, 2024 pm 01:34 PM

?? ?? ????? ????? ???? ?? ??? ??????? ???? ???????? ? ??? ????? ??? ???? ??? ? ??? ???? ????? ? ???? ???? ?? ??? ??? ?? ?????. Haqu K2 ????? ?? ???? ??? ???? ?? ??? ??? ? ?? ??? ? ??? ????. ?? ??? ??? ??? ??? ?? ??? ??? ?? ?? ??? ???? ??? ?? ????? ??? ?? ??? ?? ??? ??? ???. ?? ?? ??? ??? ?????? ???? ??? ?? ???? ?? ? ?? ????. Haqu K2? ?? ??? ?????? 210° ?? ?? ????, ???? ??? ??? ???? ? ? ????.

Apple iOS/iPadOS 18 ??? ??? ?? 4 ??: CarPlay ???? ??, ?? ?? ??, ??? ??? ?? Apple iOS/iPadOS 18 ??? ??? ?? 4 ??: CarPlay ???? ??, ?? ?? ??, ??? ??? ?? Jul 24, 2024 am 09:54 AM

???? ??? ?? ??? ??, ??? ??? ? ?? 2092483, ?? ??, DingHao, Xiaoxing_14, Wowotou Eat Big Kou, Feiying Q, ??? ??? ? ?? 2168428, Slades, Aaron212, Happy Little Hedgehog, Little Earl, Clues for the little ??? ?? ?????! [????? ????? ?? ????? ??? ?????] 7? 24? ??? ??? Apple? ?? iOS/iPadOS18 ??? ??? ?? Beta4 ????(?? ?? ??: 22A5316j)? iPhone ? iPad ????? ??????. ??? ???. Carplay ???? Apple? ?? ??? ??? ??? ???? ????? CarPlay? ??????. ???? ???? iPhone? ?????.

Apple iOS 18 'Boundless Notes' ?? ??? ??: ??? ?? ??, ??? ?? ?? Apple iOS 18 'Boundless Notes' ?? ??? ??: ??? ?? ??, ??? ?? ?? Jun 02, 2024 pm 05:05 PM

6? 1? ??? ???, ?? ??? AppleInsider? ?? ??? ???? ???? Apple? iOS18 ????? "Freeform" ?????? ??? ?? "Scenes"? ??? ?? ??? ???? ?? ??? ?? ??? ??? ??? ???? ?????. "Wubianji" ?????? ?? ?? "Wubianji" ??????? ???? ???????. ? ??????? 2022?? ??? ???? ?? iOS, iPadOS, macOS15 ? VisionOS ??? ???????. Apple? ?? ??? ??? ????. "Boundless Notes"? ??? ??? ??? ??? ?????. ?? ?? ?? ??? ???? ??? ????? ????? ?????, ?? ??? ?????, ??????? ?????. iCloud? ???? ?? ???

iOS 18?? ????? ??? ??? ??? ? ?? ??? '???' ?? ??? ???????. iOS 18?? ????? ??? ??? ??? ? ?? ??? '???' ?? ??? ???????. Jul 18, 2024 am 05:48 AM

Apple? ?? iOS18, iPadOS18 ? macOS Sequoia ??? ????? ?? ??????? ??? ??? ???????. ? ??? ???? ??? ??? ????? ??? ??? ???? ?? ??? ? ??? ???????. ??? ???? ?? ?? ?? ??? '???'??? ??? ???????. ? ??? ???? ??? ?? ?????? ???? ?? ???? ???? ??? ?? ? ???? ?????. "???" ??? ??? ?????? ???? ?? ??? ??? ???, ?? ?????? ???? ???? ?? ??? ?? ???? ?? ?? ?????? ???? ?? ?? ????? ?? ???? ?????. ???? ? ?? ??? ??? ??? ???.

See all articles