??
?? ? ?? ?? ?? ??? ???? ???? ???? ???, ??? ?????? ?? ??? ??? ?????.
Kintone? ????? ???? ?? ??? ?? ??? ?????.
? ???? WeChat ?? ???? kintone ?? ??? ???? ??? ?????.
??? ???, kintone?? ?? ??? ???? ?? ??? ??????? ?? ??, WeChat ?? ??? ???? ???? ??????? ??? ?????.
?? ?? ??? ??? ???? ??? ???? ??? ?? ?? ?? ??? ??? ???????.
?? ?? ??
??
kintone ??
?? ?? ????? ???? kintone ??????? ????. ?? ?? ?? ?? ?? ?? ??????? ??? ?????.
?? ?? | ?? ?? | ?? ?? | Remarks |
---|---|---|---|
Creator | Creator | Creator | |
?? ?? | ?? ?? | ?? ?? | |
? ? ??? ?? | ?? ?? | ?? |
??? ?? ????? ?? ????? |
? ? ??? ?? | ?? ?? | ?? | |
? ? ??? | ?? | ?? | |
?? ??? | Location | ?? | |
?? ??? | ?? ?? | tel |
??????? ????? ??? ? ? ?? ???? ?????
WeChat ?? ?? ??
1. WeChat ?? ???? ???? "WeChat ?? ?? ??? ?? ?? ??? ??"? ???? WeChat ??? ?????. ?? ??? ??
2. WeChat ?? ??? ??? ?????
??? ?? ?? ????? appID? appsecret? ??? ? ????. ? ? ?? ??? ???? ??? ??? ????.
3. ????? ?? ??? ?????
? ???? ?? ?? ???? ?????. ????? ?? ???? ?? ???? ??? ??? ???? ??? ? ????.
?? IP? ?? ??? ??? ??? ?????. ????? ?? PHP ??? ?????. (???? ?? ??? ?????.)
????, ??? ???? ??? ? ??? ????? ??? ???. WeChat?? ?? ?? ??. ??? ??? ??? ???? ?????.
Code
<?php define("APPID", "wxcbfaxxxxxx1814d4"); //appID define("APPSECRET", "604113xxxxxxxxxxxxxxx0bda2240c47"); //appsecret define("TOKEN", "cnDevNet"); //Token require "./wechat.inc.php"; $wechat = new WeChat(APPID, APPSECRET, TOKEN); $wechat->valid(); //Token驗(yàn)證 ?>
class WeChat { private $_appid; private $_appsecret; private $_token; public function __construct($appid, $appsecret, $token) { $this->_appid = $appid; $this->_appsecret = $appsecret; $this->_token = $token; } public function valid() { $echoStr = $_GET["echostr"]; //valid signature , option if($this->checkSignature()) { echo $echoStr; exit; } } private function checkSignature() { $signature = $_GET["signature"]; $timestamp = $_GET["timestamp"]; $nonce = $_GET["nonce"]; $token = $this->_token; $tmpArr = array($token, $timestamp, $nonce); sort($tmpArr); $tmpStr = implode( $tmpArr ); $tmpStr = sha1( $tmpStr ); if( $tmpStr == $signature ) { return true; } else { return false; } } }
????? ?? ??? "??"? ???? URL? ??? ??? ? "??" ??? ?????.
?? ??? ???? ??? ??? ????.
Kintone? ??
??? ?? ??????. WeChat? ???? ??? ???? ??? kintone? ?? ??? ? ??? ?? ???? ?????.
kintone? ?? ????? ?? ? ??? kintone? API? ???? ???? ?????. ??? ??? php ?? ? kintone API: ????? ??? ????(???? ?? ??)? ?????. .
// 請求頭部 $header = array( "Host: " . $this->_subDomain . ".cybozu.com:443", "X-Cybozu-API-Token: " . $this->_apiToken ); $queryStr = 'company like "'. $keyword. '"'; $params = "?app=$this->_appId&query=".urlencode($queryStr) . "&fields[0]=". urlencode("company") . "&fields[1]=". urlencode("representative") . "&fields[2]=". urlencode("area") . "&fields[3]=". urlencode("address") . "&fields[4]=". urlencode("tel"); $url = "https://" . $this->_subDomain . ".cybozu.com/k/v1/records.json". $params; $response = $this->_request($url, true, "get", null, $header); //curl提交 $result = json_decode($response, true); if (count($result["records"]) > 0) { foreach($result["records"] as $value) { if ($contentStr != '') { $contentStr .= "\n\n"; } $contentStr .= "公司名:". $value["company"]["value"]."\n" . "公司代表:". $value["representative"]["value"]."\n" . "地域:". $value["area"]["value"]."\n" . "所在地:". $value["address"]["value"]."\n" . "電話:". $value["tel"]["value"]; } } else { $contentStr = "未找到該企業(yè)信息"; }
??? ??
??
? ??? WeChat?? kintone ?? ??? ???? ??? ?? ?????. ??? ??? 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)