@@ -97,13 +97,13 @@ public function getComonentTicket()
9797 if (false === $ receive ->valid ()) {
9898 $ this ->errCode = $ receive ->errCode ;
9999 $ this ->errMsg = $ receive ->errMsg ;
100- Tools::log ("Get Wechat Push ComponentVerifyTicket Faild. {$ this ->errMsg } [ $ this ->errCode ] " , "ERR- {$ this ->authorizer_appid }" );
100+ Tools::log ("Get Wechat Push ComponentVerifyTicket Faild. {$ this ->errMsg } [ $ this ->errCode ] " , "ERR - {$ this ->authorizer_appid }" );
101101 return false ;
102102 }
103103 $ data = $ receive ->getRev ()->getRevData ();
104104 if ($ data ['InfoType ' ] === 'component_verify_ticket ' && !empty ($ data ['ComponentVerifyTicket ' ])) {
105105 # 记录推送日志到微信SDK
106- Tools::log ("Get Wechat Push ComponentVerifyTicket Success. " , " MSG- { $ this -> authorizer_appid } " );
106+ Tools::log ("Wechat Push ComponentVerifyTicket Success. " );
107107 Tools::setCache ('component_verify_ticket ' , $ data ['ComponentVerifyTicket ' ]);
108108 }
109109 return $ data ;
@@ -130,7 +130,7 @@ public function refreshAccessToken($authorizer_appid, $authorizer_refresh_token)
130130 $ url = self ::URL_PREFIX . self ::REFRESH_ACCESS_TOKEN . "?component_access_token= {$ this ->component_access_token }" ;
131131 $ result = Tools::httpPost ($ url , Tools::json_encode ($ data ));
132132 if (($ result = $ this ->_decode ($ result )) === false ) {
133- Tools::log ("Get getAuthorizerOption Faild. {$ this ->errMsg } [ $ this ->errCode ] " , "ERR- {$ this ->authorizer_appid }" );
133+ Tools::log ("Get getAuthorizerOption Faild. {$ this ->errMsg } [ $ this ->errCode ] " , "ERR - {$ this ->authorizer_appid }" );
134134 }
135135 return $ result ;
136136 }
@@ -151,7 +151,7 @@ public function getComponentAccessToken()
151151 $ url = self ::URL_PREFIX . self ::COMPONENT_TOKEN_URL ;
152152 $ result = Tools::httpPost ($ url , Tools::json_encode ($ data ));
153153 if (($ this ->component_access_token = $ this ->_decode ($ result , 'component_access_token ' )) === false ) {
154- Tools::log ("Get getComponentAccessToken Faild. {$ this ->errMsg } [ $ this ->errCode ] " , "ERR- {$ this ->authorizer_appid }" );
154+ Tools::log ("Get getComponentAccessToken Faild. {$ this ->errMsg } [ $ this ->errCode ] " , "ERR - {$ this ->authorizer_appid }" );
155155 return false ;
156156 }
157157 Tools::setCache ($ cacheKey , $ this ->component_access_token , 7200 );
@@ -202,7 +202,7 @@ public function getAuthorizationInfo($authorization_code)
202202 $ result = Tools::httpPost ($ url , Tools::json_encode ($ data ));
203203 $ authorization_info = $ this ->_decode ($ result , 'authorization_info ' );
204204 if (empty ($ authorization_info )) {
205- Tools::log ("Get getAuthorizationInfo Faild. {$ this ->errMsg } [ $ this ->errCode ] " , "ERR- {$ this ->authorizer_appid }" );
205+ Tools::log ("Get getAuthorizationInfo Faild. {$ this ->errMsg } [ $ this ->errCode ] " , "ERR - {$ this ->authorizer_appid }" );
206206 return false ;
207207 }
208208 $ authorization_info ['func_info ' ] = $ this ->_parseFuncInfo ($ authorization_info ['func_info ' ]);
@@ -241,7 +241,7 @@ public function getWechatInfo($authorizer_appid)
241241 $ result = Tools::httpPost ($ url , Tools::json_encode ($ data ));
242242 $ authorizer_info = $ this ->_decode ($ result , 'authorizer_info ' );
243243 if (empty ($ authorizer_info )) {
244- Tools::log ("Get WechatInfo Faild. {$ this ->errMsg } [ $ this ->errCode ] " , "ERR- {$ this ->authorizer_appid }" );
244+ Tools::log ("Get WechatInfo Faild. {$ this ->errMsg } [ $ this ->errCode ] " , "ERR - {$ this ->authorizer_appid }" );
245245 return false ;
246246 }
247247 $ author_data = array_merge ($ authorizer_info , $ this ->data ['authorization_info ' ]);
@@ -271,7 +271,7 @@ public function getAuthorizerOption($authorizer_appid, $option_name)
271271 $ url = self ::URL_PREFIX . self ::GET_AUTHORIZER_OPTION_URL . "?component_access_token= {$ this ->component_access_token }" ;
272272 $ result = Tools::httpPost ($ url , Tools::json_encode ($ data ));
273273 if (($ result = $ this ->_decode ($ result )) === false ) {
274- Tools::log ("Get getAuthorizerOption Faild. {$ this ->errMsg } [ $ this ->errCode ] " , "ERR- {$ this ->authorizer_appid }" );
274+ Tools::log ("Get getAuthorizerOption Faild. {$ this ->errMsg } [ $ this ->errCode ] " , "ERR - {$ this ->authorizer_appid }" );
275275 }
276276 return $ result ;
277277 }
@@ -297,7 +297,7 @@ public function setAuthorizerOption($authorizer_appid, $option_name, $option_val
297297 $ url = self ::URL_PREFIX . self ::SET_AUTHORIZER_OPTION_URL . "?component_access_token= {$ this ->component_access_token }" ;
298298 $ result = Tools::httpPost ($ url , Tools::json_encode ($ data ));
299299 if (($ result = $ this ->_decode ($ result )) === false ) {
300- Tools::log ("Get setAuthorizerOption Faild. {$ this ->errMsg } [ $ this ->errCode ] " , "ERR- {$ this ->authorizer_appid }" );
300+ Tools::log ("Get setAuthorizerOption Faild. {$ this ->errMsg } [ $ this ->errCode ] " , "ERR - {$ this ->authorizer_appid }" );
301301 }
302302 return $ result ;
303303 }
@@ -333,7 +333,7 @@ public function getPreauthCode()
333333 $ result = Tools::httpPost ($ url , Tools::json_encode ($ data ));
334334 $ this ->pre_auth_code = $ this ->_decode ($ result , 'pre_auth_code ' );
335335 if (empty ($ this ->pre_auth_code )) {
336- Tools::log ("Get getPreauthCode Faild. {$ this ->errMsg } [ $ this ->errCode ] " , "ERR- {$ this ->authorizer_appid }" );
336+ Tools::log ("Get getPreauthCode Faild. {$ this ->errMsg } [ $ this ->errCode ] " , "ERR - {$ this ->authorizer_appid }" );
337337 }
338338 return $ this ->pre_auth_code ;
339339 }
0 commit comments