增加docke部署
This commit is contained in:
27
codes/agent/game-docker/api/payment/wechat/warning.php
Normal file
27
codes/agent/game-docker/api/payment/wechat/warning.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* [Weizan System] Copyright (c) 2014 012WZ.COM
|
||||
* Weizan is NOT a free software, it under the license terms, visited http://www.012wz.com/ for more details.
|
||||
*/
|
||||
require '../../source/bootstrap.inc.php';
|
||||
$input = file_get_contents('php://input');
|
||||
|
||||
if (preg_match('/(\<\!DOCTYPE|\<\!ENTITY)/i', $input)) {
|
||||
exit('fail');
|
||||
}
|
||||
libxml_disable_entity_loader(true);
|
||||
$obj = simplexml_load_string($input, 'SimpleXMLElement', LIBXML_NOCDATA);
|
||||
if($obj instanceof SimpleXMLElement && !empty($obj->FeedBackId)) {
|
||||
$data = array(
|
||||
'appid' => trim($obj->AppId),
|
||||
'timestamp' => trim($obj->TimeStamp),
|
||||
'errortype' => trim($obj->ErrorType),
|
||||
'description' => trim($obj->Description),
|
||||
'alarmcontent' => trim($obj->AlarmContent),
|
||||
'appsignature' => trim($obj->AppSignature),
|
||||
'signmethod' => trim($obj->SignMethod),
|
||||
);
|
||||
require '../../framework/bootstrap.inc.php';
|
||||
WeUtility::logging('pay-warning', $input);
|
||||
}
|
||||
exit('success');
|
||||
Reference in New Issue
Block a user