Files
shopxo/Application/Api/Controller/OrderNotifyController.class.php

47 lines
998 B
PHP
Raw Normal View History

2018-08-05 01:54:43 +08:00
<?php
namespace Api\Controller;
2018-09-28 14:40:45 +08:00
use Service\OrderService;
2018-09-28 14:31:41 +08:00
2018-08-05 01:54:43 +08:00
/**
* 订单支付异步通知
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2018-05-21T10:48:48+0800
*/
class OrderNotifyController extends CommonController
{
/**
* [_initialize 前置操作-继承公共前置方法]
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2018-05-21T10:48:48+0800
*/
public function _initialize()
{
// 调用父类前置方法
parent::_initialize();
}
/**
2018-09-28 14:31:41 +08:00
* [Notify 支付异步处理]
2018-08-05 01:54:43 +08:00
* @author Devil
* @blog http://gong.gg/
* @version 1.0.0
* @datetime 2018-03-04T14:35:38+0800
*/
2018-09-28 14:31:41 +08:00
public function Notify()
2018-08-05 01:54:43 +08:00
{
2018-09-28 14:45:56 +08:00
$ret = OrderService::Notify($_REQUEST);
2018-09-28 14:36:02 +08:00
if($ret['code'] == 0)
2018-08-05 01:54:43 +08:00
{
exit('success');
}
2018-09-28 14:44:09 +08:00
file_put_contents('./pppppppp.txt', json_encode($ret));
2018-08-05 01:54:43 +08:00
exit('error');
}
}
?>