NotifyController.php 463 B

123456789101112131415161718
  1. <?php
  2. namespace addons\Sicpay\api\controllers;
  3. use yii\web\Controller;
  4. class NotifyController extends Controller
  5. {
  6. public $enableCsrfValidation = false;
  7. public function actionTopay(){
  8. $order_no = $this->request->get("order_no");
  9. $form = \Yii::$app->redis->get($order_no);
  10. if(!empty($form)){
  11. echo $form;exit;
  12. }else{
  13. echo "<h1 style='text-align: center'>订单不存在</h1>";exit;
  14. }
  15. }
  16. }