|
@@ -31,7 +31,10 @@ class WeixinService extends Service
|
|
|
|
|
|
public function getPublicWxArticle($data){
|
|
|
list($status, $msg) = $this->rule($data);
|
|
|
- if(! $status) return [false, 'IP未入白名单'];
|
|
|
+ if(! $status) {
|
|
|
+ file_put_contents('record_ip.txt',date("Y-m-d H:i:s",time()).json_encode($data) . PHP_EOL."来源IP".$msg.PHP_EOL,8);
|
|
|
+ return [false, 'IP未入白名单'];
|
|
|
+ }
|
|
|
|
|
|
list($status, $msg) = $this->getToken();
|
|
|
if(! $status) return [false, $msg];
|