mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-06-30 19:17:43 +08:00
优化 安装包生成
This commit is contained in:
47
Application/Api/Controller/OrderNotifyController.class.php
Executable file
47
Application/Api/Controller/OrderNotifyController.class.php
Executable file
@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
namespace Api\Controller;
|
||||
|
||||
use Service\OrderService;
|
||||
|
||||
/**
|
||||
* 订单支付异步通知
|
||||
* @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();
|
||||
}
|
||||
|
||||
/**
|
||||
* [Notify 支付异步处理]
|
||||
* @author Devil
|
||||
* @blog http://gong.gg/
|
||||
* @version 1.0.0
|
||||
* @datetime 2018-03-04T14:35:38+0800
|
||||
*/
|
||||
public function Notify()
|
||||
{
|
||||
$ret = OrderService::Notify($_REQUEST);
|
||||
if($ret['code'] == 0)
|
||||
{
|
||||
exit('success');
|
||||
}
|
||||
file_put_contents('./pppppppp.txt', json_encode($ret));
|
||||
exit('error');
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user