TestController.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | LikeShop有特色的全开源社交分销电商系统
  4. // +----------------------------------------------------------------------
  5. // | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
  6. // | 商业用途务必购买系统授权,以免引起不必要的法律纠纷
  7. // | 禁止对系统程序代码以任何目的,任何形式的再发布
  8. // | 微信公众号:好象科技
  9. // | 访问官网:http://www.likemarket.net
  10. // | 访问社区:http://bbs.likemarket.net
  11. // | 访问手册:http://doc.likemarket.net
  12. // | 好象科技开发团队 版权所有 拥有最终解释权
  13. // +----------------------------------------------------------------------
  14. // | Author: LikeShopTeam-段誉
  15. // +----------------------------------------------------------------------
  16. namespace app\shopapi\controller;
  17. use app\adminapi\logic\withdraw\WechatMerchantTransferLogic;
  18. use app\common\model\UserAuth;
  19. use app\common\model\WithdrawApply;
  20. use app\common\service\WeChatConfigService;
  21. /**
  22. * 测试控制器
  23. * Class TestController
  24. * @package app\shopapi\controller
  25. */
  26. class TestController extends BaseShopController
  27. {
  28. public array $notNeedLogin = ['test'];
  29. public function test()
  30. {
  31. $withdrawApply = WithdrawApply::findOrEmpty(32)->toArray();
  32. $userAuth = UserAuth::where('user_id', $withdrawApply['user_id'])->order('terminal', 'asc')->findOrEmpty();
  33. $config = WeChatConfigService::getWechatConfigByTerminal(1);
  34. // WechatMerchantTransferLogic::transfer($withdrawApply,$userAuth,$config);
  35. WechatMerchantTransferLogic::details($withdrawApply,$config);
  36. halt(111);
  37. }
  38. }