Chuanzhi ? Dark Horse? WeChat ?? ??? ??? ?? ?? ??? ???? ???
Aug 31, 2017 am 11:52 AMWeChat ?? ???? ??, ??, ??? ???? ???? ??? ?? ??? ???? ??? ??? ??????. WeChat ?? ????? ?? ??? ??????, ??? ?? ? ?? ??? ?????. ???? ?? ??? ?? ??? ? ???? ????? ??? ? ??? ?? ??, ?? ?? ?? ?? ??? ???? ??? ??? ???? ??? ? ????. "Chuangzhi ? Dark Horse WeChat ?? ??? ?? ??? ????"? Chuanzhi ????? Dark Horse ?????? ?? ??? WeChat ?? ??? ?? ??? ???????.
?? ?? ??: http://www.miracleart.cn/course/320.html
???? ?? ???:
??? ???? ?????? ?? ?? ????? ????. ????? ???? ?? ??? ?? ???? ?????? ??? ??? ??, ??, ??? ????? ??? ?? ??? ?? ??? ?? ??? ??? ???? ????? ?????. ???? ???? ???? ??? ????. ??? ??? ??? ??? ??
? ???? ? ??? ?? WeChat API ????? ?????:
WeChat ?? ???, WeChat ??? ?? ? ? ??? ??? ?? WeChat API ??.
WeChat ??, WeChat ?? ??, WeChat ?? ? ??, WeChat ???.
1.index.php
<?php include_once 'lib.inc.php'; $wcObj = new WeChat("YOUKUIYUAN"); $wcObj->wcValid();
2. ?? ???
<?php /** * Description of wechat * * @author Administrator */ class WeChat extends WxApi{ public $token = ""; //put your code here public function __construct($token = "") { parent::__construct(); $this->token = $token; } public function wcCheckSignature(){ try{ if (empty($this->token)) { throw new Exception('TOKEN is not defined!'); } $signature = $_GET["signature"]; $timestamp = $_GET["timestamp"]; $nonce = $_GET["nonce"]; $token = $this->token; $tmpArr = array($token, $timestamp, $nonce); // use SORT_STRING rule sort($tmpArr, SORT_STRING); $tmpStr = implode( $tmpArr ); $tmpStr = sha1( $tmpStr ); if( $tmpStr == $signature ){ return true; }else{ return false; } } catch (Exception $e) { echo 'Message: ' .$e->getMessage(); } } public function wcValid(){ $echoStr = isset($_GET["echostr"]) && !empty($_GET["echostr"]) ? addslashes($_GET["echostr"]) : NULL; if(is_null($echoStr)){ $this->wcMsg(); } else{ //valid signature , option if($this->wcCheckSignature()){ echo $echoStr; exit; } else{ exit(); } } } public function wcMsg(){ //get post data, May be due to the different environments $postStr = isset($GLOBALS["HTTP_RAW_POST_DATA"]) && !empty($GLOBALS["HTTP_RAW_POST_DATA"]) ? $GLOBALS["HTTP_RAW_POST_DATA"] : ""; if(!empty($postStr)){ libxml_disable_entity_loader(true); $postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA); $this->zcLog(TRUE,$postObj); $fromUsername = $postObj->FromUserName; $toUsername = $postObj->ToUserName; $MsgType = $postObj->MsgType; if($MsgType == 'event'){//執(zhí)行事件相應(yīng) $Event = $postObj->Event; switch ($Event) { case 'subscribe'://關(guān)注 break; case 'unsubscribe'://取消關(guān)注 break; case 'SCAN'://掃描 break; case 'LOCATION'://地址 break; case 'CLICK'://點擊時間 break; case 'VIEW'://跳轉(zhuǎn) break; case 'card_pass_check'://卡券審核通過 break; case 'card_not_pass_check'://卡券審核失敗 break; case 'user_get_card'://用戶領(lǐng)取卡券 break; case 'user_del_card'://用戶刪除卡券 break; case 'user_view_card'://用戶瀏覽會員卡 break; case 'user_consume_card'://用戶核銷卡券 break; case 'merchant_order'://微小店用戶下單付款 break; default: break; } } else{ switch ($MsgType) { case 'text'://文本格式 break; case 'image'://圖片格式 break; case 'voice'://聲音 break; case 'video'://視頻 break; case 'shortvideo'://小視頻 break; case 'location'://上傳地理位置 break; case 'link'://鏈接相應(yīng) break; default: break; } } //////////////////////////////////////////////////////////////////// $keyword = trim($postObj->Content); $time = time(); $textTpl = "<xml> <ToUserName><![CDATA[%s]]></ToUserName> <FromUserName><![CDATA[%s]]></FromUserName> <CreateTime>%s</CreateTime> <MsgType><![CDATA[%s]]></MsgType> <Content><![CDATA[%s]]></Content> <FuncFlag>0</FuncFlag> </xml>"; if(!empty( $keyword )){ $msgType = "text"; $contentStr = "Welcome to wechat world!"; $resultStr = sprintf($textTpl, $fromUsername, $toUsername, $time, $msgType, $contentStr); echo $resultStr; } else{ echo "Input something..."; } //////////////////////////////////////////////////////////////////// } else{ echo "暫時沒有任何信息!"; exit; } } //日志LOG public function zcLog($errcode , $errmsg){ $this->returnAy = array(); $this->returnAy['errcode'] = $errcode; $this->returnAy['errmsg'] = $errmsg; $this->returnAy['errtime'] = date("Y-m-d H:i:s",time()); $logfile = fopen("logfile_".date("Ymd",time()).".txt", "a+"); $txt = json_encode($this->returnAy)."\n"; fwrite($logfile, $txt); fclose($logfile); //return $this->returnAy; } }
? ??? Chuanzhi ? Dark Horse? 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)

?? ??? ???? ???? Douyin? ?? ??? ????? ???? ? ? ??? ?????. TikTok??? ? ??? ???? ???? ? ? ????. ?? ???? ?? ??? ???? ???? ?? ?????, ?? ??? ?? ??? ?????. Douyin? ?? ??? ???? ???? ???? ?????? ? ???? ? ??? ?? ???? ?? ?? ???? ???? ??? ?? ??? ???? ??? ??????. 1. Douyin? ??? ??? ???? ?? ?? ?????? ???? ???? ??? ???, ??? ???? ?? ?? ??? ???? ???? ???? ???? ?? ?????. ??? ????? ??? ???? ?? ?? Douyin? ?? ??? ???? ???? ?? ?????. 2. ?? ?? ???? ???? ??? ?????? 1. ?? ??? ?? ???? ???? ??: ??

? AI ?? ????? ??? ??? AI ?? ???? ??? AI ?? ????? ??? ?? ??????. AI ?? ????? ??? ?? ???? ???, ?? ??? ?????, ?? ???? ?? ? ????. ?? ?? ????? ?? ?????? ??? ??????. ?? Dayao? 4?? AI ?? ????? ??(?? C# ?? ??)? ???????. ? ??? ?? ???? ??? ??? ????. https://github.com/YSGStudyHards/DotNetGuide1.GitHubCopilotGitHubCopilot? ? ??? ?? ???? ??? ???? ? ??? ?? AI ?? ?????? ?? ??? ??? ? ??? ? ????. ??

?? ??? ???? ???? Xiaohongshu? ?? ???? ??? ?? ???? ??? ???? ???? ?? ???? ?????. ? ?????? ??? ??? ???? ?? ?? ?? ?? ?? ?? ?????. ???? Xiaohongshu ??? ??? ???? ??? ?????? 1. ???? ?? ??? ??? ?????? ??, ??? ??? ???? ???? ??? ?????. ????? ?? ??? ??? ??? ??? ? ??? ??? ??? ???? ???? ???. 2. ?? ?? : ??? ?? ???? ?? ?? ??? ??? ? ????. Douyin, Kuaishou ?? ?? ?? ??? ?? ?????? ???? ??, ??, ?? ? ?? ??? ??? ? ????. 3. ??? ?????. ??? ???? ??? ???? ?? ?????. ???? ??? ??? ? ?? ???? ???? ??? ??? ?????.

1. ?? ????? ???? ?? ??? ??? [?]? ?????(?? ??). 2. ?? ?? ??? ??? ?? [??]? ???? ??? ???(?? ??). 3. ?? ?? [?? ??]? ?? ???(?? ??). 4. ?? ?? [??? ???] ??? ?????(?? ??). 5. ?? ?? [??? ??? ???] ??? ???(?? ??). 6. ????? [?? ??]? ???? ??? ?????(?? ??).

?? ?? ?? ???? Douyin? ??? ?? ??? ???? ??? ??? ?? ??? ?? ? ?? ?? ?? ???, ?? ??? ???? ??? ??? ??? ? ?? ??? ?????. ???? Douyin? ???? ???? ?? ?? ??? ?????? ? ?? ? ??? ?? ??? ???? TikTok?? ? ?? ??? ???? ? ??? ? ????. 1. Douyin? ???? ???? ??? ???? ??? ?????? ???? ???? Douyin?? ?? ???? ?? ? ?? ?? ??? ??? ? ?? ??? ?? ???. ? ?? ??? Douyin ?????? ?? ??? ?? ? ????, ?? ????? ?? ?????? ???. Douyin? ?? ???, ?? ???, ??? ??? ? ??? ??? ???? ?? ?? ?? ?? ??? ?????. TikTok ???? ?? ???? ??? ?? ???? ?????? ??? ? ????.

?? ??? AI ????? ??(Devin)? ??? ? ? ?? ? ? ? 2022? 3? 3?, ???? ??? NLP?? ???? AI ????? SWE-????? ??????. GPT-4 ??? ???? GitHub ?????? ??? ???? ?????. SWE-bench ??? ???? SWE-agent? ??? Devin? ???? ?? 93?? ??? ??? 12.29%? ?????. SWE-agent? ?? ???? ?? ???? ?? ??? ?? ????, ?? ?? ??? ????, ?? ?? ????, ???? ?? ? ??? ? ????. (??: ? ??? ?? ??? ?? ??? ???? ??? ?? ??? ??? ???? ??? ?? ? ??? ???? ????.) SWE-A

Douyin? ??? ?? ?? ? ?? ???? ? ????? ??? ?? ??, ???? ???? ?????. Douyin? 15? ???? ?? ?? ???? ??? ??? ??? ??? ??? ??? ?? ??? ????? ?????. ???? Douyin? ??? ?? ??? ??? ??? ? ????? 1. ?? 15?? ?? ????. ???? ??? ??? ??? ? ???? 1. ?? ?? ???? ???? ????? ?? ??? ??? 15??? ???? ?? ? ??? ? Douyin? ?? ??? ???? ??? ??? ????. ??? ? ??? ??? ? ??? ? ???? ??? ? ??? ??? ??? ?? ????. ??? ??? ??? ? ?? ? ? ??? ?? ?? ?? ??? ?? ?? ???? ?? ??? ??? ?? ? ????. 2. Douyin ?? ?? ? ??? ?? Douyin? ??? ?? ??? ?????.

Go ?? ?? ??? ?????? ???? ??? ?????? ??? ????? ???? ?? ?? ? ?? ???? Go ??? ???? ??? ??????? ???? ??? ???? ??????. ???? ???? ????? ??? Go ??? ??? ?????? ????? ??? ???? ???????. ? ????? Go ??? ???? ??? ??????? ???? ??? ??? ???? ??? ??? ???? ??? ??? ?????? ??? ??? ? ??? ?? ?? ??? ?????. 1. ?? ???? ?? ?? ??? ??? ???? ???. ??
