TestController.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. /**
  3. * 测试模块
  4. * @author wesmiler
  5. */
  6. namespace app\api\controller;
  7. use app\weixin\model\UserBalanceLog;
  8. use app\weixin\service\Award;
  9. use function AlibabaCloud\Client\value;
  10. use app\admin\model\CarModel;
  11. use app\weixin\model\Books;
  12. use app\weixin\model\Commands;
  13. use app\weixin\model\Devices;
  14. use app\weixin\model\Member;
  15. use app\weixin\model\Payment;
  16. use app\weixin\model\Storage;
  17. use app\weixin\model\Wechat;
  18. use app\weixin\service\Activity;
  19. use cmf\controller\HomeBaseController;
  20. use think\Request;
  21. class TestController extends HomeBaseController
  22. {
  23. public function index()
  24. {
  25. $url = url('/weixin/member/home?id='.rand(10000,100000),'','',true);
  26. echo $url;
  27. $dd = Wechat::makeShortUrl($url);
  28. var_dump($dd);
  29. exit;
  30. }
  31. public function marketTest(){
  32. $type = input('type', 1);
  33. $userId = input('id', 1);
  34. $sourceId = input('sid', 0);
  35. $money = input('money', 0);
  36. $result = Award::marketAward($userId, $sourceId, $type, $money);
  37. return showJson(1005, $result);
  38. }
  39. public function checkWithdraw(){
  40. $orderid = input('id', 0);
  41. }
  42. }
  43. ?>