Pay.php 359 B

12345678910111213141516171819
  1. <?php
  2. namespace app\mobile\controller;
  3. use app\mobile\logic\Pay as Logic;
  4. use think\Log;
  5. class Pay extends Base
  6. {
  7. public function createOrder()
  8. {
  9. $function = __FUNCTION__;
  10. return json($this->logic->$function());
  11. }
  12. public $logic;
  13. public function __initialize() {
  14. $this->logic = new Logic($this->request);
  15. }
  16. }