| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- /**
- * 测试模块
- * @author wesmiler
- */
- namespace app\api\controller;
- use app\weixin\model\UserBalanceLog;
- use app\weixin\service\Award;
- use function AlibabaCloud\Client\value;
- use app\admin\model\CarModel;
- use app\weixin\model\Books;
- use app\weixin\model\Commands;
- use app\weixin\model\Devices;
- use app\weixin\model\Member;
- use app\weixin\model\Payment;
- use app\weixin\model\Storage;
- use app\weixin\model\Wechat;
- use app\weixin\service\Activity;
- use cmf\controller\HomeBaseController;
- use think\Request;
- class TestController extends HomeBaseController
- {
- public function index()
- {
- $url = url('/weixin/member/home?id='.rand(10000,100000),'','',true);
- echo $url;
- $dd = Wechat::makeShortUrl($url);
- var_dump($dd);
- exit;
- }
- public function marketTest(){
- $type = input('type', 1);
- $userId = input('id', 1);
- $sourceId = input('sid', 0);
- $money = input('money', 0);
- $result = Award::marketAward($userId, $sourceId, $type, $money);
- return showJson(1005, $result);
- }
- public function checkWithdraw(){
- $orderid = input('id', 0);
- }
- }
- ?>
|