12345678910111213141516171819202122232425262728293031 |
- <?php
- namespace api\modules\v1\controllers;
- use common\library\Pay\lib\CLogFileHandler;
- use common\library\Pay\lib\Log;
- use common\library\Pay\lib\PayNotifyCallBack;
- use yii\web\Controller;
- use yii;
- /**
- * 支付回调,处理订单
- */
- class PayController extends Controller
- {
- public $enableCsrfValidation = false;
- /**
- * 微信支付成功,回调方法
- * @return string
- */
- public function actionWechatnotify()
- {
- $logHandler= new CLogFileHandler(\Yii::getAlias('@log')."/".date('Y-m-d').'.log');
- $log = Log::Init($logHandler, 15);
- Log::DEBUG("begin notify");
- $notify = new PayNotifyCallBack();
- $result = $notify->Handle(false);
- }
- }
|