<?php
/*
 * description：
 * author：wh
 * email：
 * createTime：{2023/11/20} {10:28} 
 */

namespace app\index\controller;


use app\api\controller\BaseCommonController;
use app\api\logic\UserLogic;
use think\Controller;
use think\Db;
use think\facade\Request;
use wanghua\general_utility_tools_php\api\ApiDocument;
use wanghua\general_utility_tools_php\http\Curl;
use wanghua\general_utility_tools_php\tool\Bank;
use wanghua\general_utility_tools_php\tool\Tools;

/**
 *
 */
class Test extends BasePublicController
{
    function test()
    {

        // 使用mt_rand()生成随机数
        //$randomNumber = mt_rand(0, 2);
        //
        //echo $randomNumber;

        (new UserLogic())->offline(input('client_id','asdsssssssssss'));
        //$res = Db::table('fa_users')->find();
        //dump($res);

        //$res = Db::connect('mysql://cup_defense:z8PMXE3PGsy7WiFP@127.0.0.1:3306/cup_defense#utf8')->table('fa_users')->find();
        //dump($res);


        //$res = Curl::curl_get('https://qifu.baidu.com/ip/geo/v1/district?ip=183.227.88.8');
        //dump($res);die;
        //$res = (new Bank())->getBankSimpleInfoByBankNo('6217003760019611401');
        //
        //dump($res);
        //dump(Request::host());
    }

    function testwss(){
        return view();
    }

    function buildApiDoc()
    {
        parent::buildApiDoc();
    }

    public function buildTablesConf()
    {
        parent::buildTablesConf(); // TODO: Change the autogenerated stub
    }
    public function clearCache()
    {
        parent::clearCache(); // TODO: Change the autogenerated stub
    }
}