Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b32b96d

Browse files
update hostie to service, see #14
1 parent e4b8f66 commit b32b96d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

‎docker/ding-dong-bot.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// \IO\Github\Wechaty\Util\Logger::$_LOGGER_DIR = "/tmp/";
2222

2323
$token = getenv("WECHATY_PUPPET_HOSTIE_TOKEN");
24-
$endPoint = getenv("WECHATY_PUPPET_HOSTIE_ENDPOINT");
24+
$endPoint = getenv("WECHATY_PUPPET_SERVICE_ENDPOINT");
2525
$wechaty = \IO\Github\Wechaty\Wechaty::getInstance($token, $endPoint);
2626
$wechaty->onScan(function($qrcode, $status, $data) {
2727
if($status == 3) {

‎examples/bot.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function autoload($clazz) {
5959
const xml = `<?xml version="1.0"?>\n<msg>\n\t<appmsg appid="" sdkver="0">\n\t\t<title>${content.title}</title>\n\t\t<des>${content.description}</des>\n\t\t<action>view</action>\n\t\t<type>${content.type}</type>\n\t\t<showtype>0</showtype>\n\t\t<soundtype>0</soundtype>\n\t\t<mediatagname />\n\t\t<messageext />\n\t\t<messageaction />\n\t\t<content />\n\t\t<contentattr>0</contentattr>\n\t\t<url>https://mp.weixin.qq.com/mp/waerrpage?appid=${content.appid}&amp;type=upgrade&amp;upgradetype=3#wechat_redirect</url>\n\t\t<lowurl />\n\t\t<dataurl />\n\t\t<lowdataurl />\n\t\t<songalbumurl />\n\t\t<songlyric />\n\t\t<appattach>\n\t\t\t<totallen>0</totallen>\n\t\t\t<attachid />\n\t\t\t<emoticonmd5></emoticonmd5>\n\t\t\t<fileext />\n\t\t\t<cdnthumburl>${content.cdnthumburl}</cdnthumburl>\n\t\t\t<cdnthumbmd5></cdnthumbmd5>\n\t\t\t<cdnthumblength>${content.cdnthumblength}</cdnthumblength>\n\t\t\t<cdnthumbwidth>${content.cdnthumbwidth}</cdnthumbwidth>\n\t\t\t<cdnthumbheight>${content.cdnthumbwidth}</cdnthumbheight>\n\t\t\t<cdnthumbaeskey>${content.cdnthumbaeskey}</cdnthumbaeskey>\n\t\t\t<aeskey>${content.aeskey}</aeskey>\n\t\t\t<encryver>0</encryver>\n\t\t\t<filekey>wxid_orp7dihe2pm112199_1587623589</filekey>\n\t\t</appattach>\n\t\t<extinfo />\n\t\t<sourceusername>${content.username}</sourceusername>\n\t\t<sourcedisplayname>${content.title}</sourcedisplayname>\n\t\t<thumburl />\n\t\t<md5 />\n\t\t<statextstr />\n\t\t<directshare>0</directshare>\n\t\t<weappinfo>\n\t\t\t<username><![CDATA[${content.username}]]></username>\n\t\t\t<appid><![CDATA[${content.appid}]]></appid>\n\t\t\t<type>0</type>\n\t\t\t<version>${content.version}</version>\n\t\t\t<weappiconurl><![CDATA[]]></weappiconurl>\n\t\t\t<pagepath><![CDATA[${content.pagepath}]]></pagepath>\n\t\t\t<appservicetype>0</appservicetype>\n\t\t\t<tradingguaranteeflag>0</tradingguaranteeflag>\n\t\t</weappinfo>\n\t</appmsg>\n\t<fromusername>${selfId}</fromusername>\n\t<scene>0</scene>\n\t<appinfo>\n\t\t<version>1</version>\n\t\t<appname />\n\t</appinfo>\n\t<commenturl />\n</msg>\n`
6060
}*/
6161
$token = getenv("WECHATY_PUPPET_SERVICE_TOKEN");
62-
$endPoint = getenv("WECHATY_PUPPET_HOSTIE_ENDPOINT");
62+
$endPoint = getenv("WECHATY_PUPPET_SERVICE_ENDPOINT");
6363
$appId = getenv("WECHAT_MINI_PROGRAM_APPID");
6464
$username = getenv("WECHAT_MINI_PROGRAM_USERNAME");
6565
$wechaty = \IO\Github\Wechaty\Wechaty::getInstance($token, $endPoint);

‎examples/ding-dong-bot.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function autoload($clazz) {
4141
// \IO\Github\Wechaty\Util\Logger::$_LOGGER_DIR = "/tmp/";
4242

4343
$token = getenv("WECHATY_PUPPET_SERVICE_TOKEN");
44-
$endPoint = getenv("WECHATY_PUPPET_HOSTIE_ENDPOINT");
44+
$endPoint = getenv("WECHATY_PUPPET_SERVICE_ENDPOINT");
4545
$appId = getenv("WECHAT_MINI_PROGRAM_APPID");
4646
$username = getenv("WECHAT_MINI_PROGRAM_USERNAME");
4747
$wechaty = \IO\Github\Wechaty\Wechaty::getInstance($token, $endPoint);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /