Cang.php 733 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace app\mobile\controller;
  3. use app\mobile\logic\Cang as Logic;
  4. use think\Log;
  5. class Cang extends Base
  6. {
  7. public function create()
  8. {
  9. $function = __FUNCTION__;
  10. return json($this->logic->$function());
  11. }
  12. public function getDetail() {
  13. $function = __FUNCTION__;
  14. return json($this->logic->$function());
  15. }
  16. public function getCangList() {
  17. $function = __FUNCTION__;
  18. return json($this->logic->$function());
  19. }
  20. public function createPayParams() {
  21. $function = __FUNCTION__;
  22. return json($this->logic->$function());
  23. }
  24. public $logic;
  25. public function __initialize() {
  26. $this->logic = new Logic($this->request);
  27. }
  28. }