Laojiaqian.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. namespace app\master\controller;
  3. use app\master\logic\Laojiaqian as Logic;
  4. class Laojiaqian extends Base
  5. {
  6. //注销金账户
  7. /*public function cancelPlatformUser() {
  8. $param = request()->param();
  9. vendor('payModel.User');
  10. $user = new \User();
  11. $user->setMobile($param['mobile']);
  12. $user->setPageBackurl('http://wxapp.dahengdian.com/master/notify/cancelUser');
  13. $data = (new Finance())->userCancel($msg, $user);
  14. $model = Model::get([
  15. 'mobile'=>$param['mobile']
  16. ]);
  17. if($model) {
  18. $model->isAuthTrueName = 0;
  19. $model->isAuthBank = 0;
  20. $model->save();
  21. UserBank::destroy([
  22. 'userID'=>$model['userID']
  23. ]);
  24. }
  25. return view(__FUNCTION__, [
  26. 'resourcePath'=>'/static/'.request()->path(),
  27. 'param'=>$data['param'],
  28. 'url'=>$data['url']
  29. ]);
  30. }*/
  31. public function getCangList() {
  32. $function = __FUNCTION__;
  33. return json($this->logic->$function());
  34. }
  35. public $logic;
  36. public function __initialize() {
  37. $this->logic = new Logic($this->request);
  38. }
  39. }