1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- namespace app\mobile\controller;
- use app\BaseController;
- use app\mobile\logic\PayLogic;
- use think\exception\ValidateException;
- use think\facade\Validate;
- class Pay extends BaseController
- {
-
- public function Notify()
- {
- return PayLogic::Notify();
- }
-
- public function checkPayResult()
- {
- $param = $this->request->only(['pay_code'], 'post');
- $val = Validate::rule(['pay_code|支付编码' => 'require|length:18']);
- if (!$val->check($param)) throw new ValidateException($val->getError());
- return PayLogic::checkPayResult($param['pay_code']);
- }
- }
|