File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 21
21
// \IO\Github\Wechaty\Util\Logger::$_LOGGER_DIR = "/tmp/";
22
22
23
23
$ token = getenv ("WECHATY_PUPPET_HOSTIE_TOKEN " );
24
- $ endPoint = getenv ("WECHATY_PUPPET_HOSTIE_ENDPOINT " );
24
+ $ endPoint = getenv ("WECHATY_PUPPET_SERVICE_ENDPOINT " );
25
25
$ wechaty = \IO \Github \Wechaty \Wechaty::getInstance ($ token , $ endPoint );
26
26
$ wechaty ->onScan (function ($ qrcode , $ status , $ data ) {
27
27
if ($ status == 3 ) {
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ function autoload($clazz) {
59
59
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}&type=upgrade&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`
60
60
}*/
61
61
$ token = getenv ("WECHATY_PUPPET_SERVICE_TOKEN " );
62
- $ endPoint = getenv ("WECHATY_PUPPET_HOSTIE_ENDPOINT " );
62
+ $ endPoint = getenv ("WECHATY_PUPPET_SERVICE_ENDPOINT " );
63
63
$ appId = getenv ("WECHAT_MINI_PROGRAM_APPID " );
64
64
$ username = getenv ("WECHAT_MINI_PROGRAM_USERNAME " );
65
65
$ wechaty = \IO \Github \Wechaty \Wechaty::getInstance ($ token , $ endPoint );
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ function autoload($clazz) {
41
41
// \IO\Github\Wechaty\Util\Logger::$_LOGGER_DIR = "/tmp/";
42
42
43
43
$ token = getenv ("WECHATY_PUPPET_SERVICE_TOKEN " );
44
- $ endPoint = getenv ("WECHATY_PUPPET_HOSTIE_ENDPOINT " );
44
+ $ endPoint = getenv ("WECHATY_PUPPET_SERVICE_ENDPOINT " );
45
45
$ appId = getenv ("WECHAT_MINI_PROGRAM_APPID " );
46
46
$ username = getenv ("WECHAT_MINI_PROGRAM_USERNAME " );
47
47
$ wechaty = \IO \Github \Wechaty \Wechaty::getInstance ($ token , $ endPoint );
You can’t perform that action at this time.
0 commit comments