?? ????? ?? ?? ???? ???? ?? ?? ???? ?????(SAE)? ??????? ???? ?? ???? ??? ??? ?? ?????. ??? ???? Sina? ???? ???? ?? ? ????. Amazon? AWS? ??? ? ??? Sina? ?? ? ????. ? ?? ??? Baidu BaiduAppEngine(BAE)??? ??? ??? ????? ??? ???? ??? ?? ??? ?? ???? ??? ? ???? ???? force.com?? ???? ?? ????.
? ?? ??? force.com ??? ???? ????. www.salesforce.com? ???? ??, ????? ?????. ? ?? ??? WeChat ??? ?????? Apex Rest Class? ???? ????. ??? ??? ???? WeChatRestController?? Rest ????? ??? WeChatRest:
@RestResource(urlMapping='/WeChatRest/*') global with sharing class WeChatRestController{ @HttpGet global static void doGet(){ String signature = RestContext.request.params.get('signature'); String timestamp = RestContext.request.params.get('timestamp'); String nonce = RestContext.request.params.get('nonce'); String echostr = RestContext.request.params.get('echostr'); System.debug(echostr + ' - ' + timestamp); RestContext.response.addHeader('Content-Type', 'text/plain'); RestContext.response.responseBody = Blob.valueOf(echostr); //return echostr; } }
???. ? ?????? ???? WeChat URL? ???? Tencent??? ?? ?? ? URL? ?????. ?? ?? ??? ????.
?? ??: ? ??? ??? ? Tencent? "??? ??? ? ?? ?? ?"? ??????. ?? ??? ??, ?? ?? ? ?? ??? ?????. ?? ???? ?? ??? ????? Tencent? ?? ??? XML ???? ?????? ????, ?? ????? ?? ??? XML ???? ???? XML ???? ?? ??? ????. ?? ????? ????? ?? ?? ??? ???? ?? ???? XML ???? ????? ?? ??? ?? ??? ??????. ? ??? ??? ?? ?? ??? ?? ??? ??? ?????.
Tencent? Get ???? ?? ? URL? 4?? ????? ?????. URL ??? ??? ????(???): https://msd-developer-edition.ap1. force.com/services/apexrest/WeChatRest?signature=GenePoint&echostr=test×tamp=111&nonce=222 URL?? ??? ?? 4? ????? echostr ?? ???? Tencent? ???? ?? ?? ??? ??? ??? ?????. ??? ??? ??? ???? ??? ??? ? ????. Lazy ?? ?? ???? ??? ?? ??? ??? URL? ??? ?? ??? ??? ????. ???? echostr? ?? ??? ?? ????? ?? Tencent ????? ???? ??? ??? ?????, nonce ????? ?? ???? ?????. ?? ??? ?????. ???? ??? ?????. ???? ???? ? ?? echostr? ?? ???? force.com? ????? xml ??? ??? ??? ????. Tencent? echostr ?? ?? ??? ???? ?? ??. ??? ??? Blog.valueOf ???? ???? ?? ??? ??? ???? ???. ? ?? ??? ? URL? ?? ?? ???? ???? ?????? Site.com? ???? ????. force.com ??? ? ? ???? ?????? ????? ??? ??? ?????. ??? ???? ?? ? URL? ?? ?? ???? ???? ???? ? ????. .com? ????? ?? ??? ??? ??? ??->???? ??? ? ???? ??? ??? ???? ???. ?? ?? ???? ??? ??? johnson0001:
http:/???. /johnson0001-developer-edition.ap1.force.com
???? ??? ? ?? ??? ???? ??? ????. ?? ??? ??? ?????.
?? ??? ?? ?? ???? ??? ??, ??? ??? ???? ""Active Site Home Page"(???? ????? ?? ??? ??? ?? ???? ????? ?? ?)? ?????. , ?? ??? ???? ?? "??" ??? ?????:
?? ???? ???? "?? ??? ??" ??? ?????.
?? ???? "Apex ??? ??? ???"? ?? ?? ??? ?????.
??? ??? WeChatRestController ???? ?????. , ??? ????? ?? ?? ???? ??? ? ????.
????? ??? ????? ???? "???" ??? ???? ???? ??????. ?? URL? ?? ??? ??? ?????? ???? ? ????(URL? ????? ? ? ?? ?? ? ????):
https://johnson0001-developer-edition.ap1.force .com/services /apexrest/WeChatRest
? ?? ??? Tencent ???? ???? ????. ?? ???? ? URL? ???? ??? ??? ? ?? ??? ???? ??? ?????. ?? ??:
URL Echostr ???? ??: 1. Token(Tencent? ????? ???? ??? ?), Timestamp(Tencent? URL? ??? ? ??? ????? ?), Nonce(Tencent? ??? ?)? ?????. URL) ??? Nonce ?? ?????? ?????. 2. ?? ? ???? ?????. 3. Normal? echostr
??? Force.com WeChat ?? ???? ?? ?? ?? ?? PHP ??? ????? ??????!
? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

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