<?php

namespace Http\Controllers\QuickApp;

use App\Http\Controllers\QuickApp\WelcomeController;
use PHPUnit\Framework\TestCase;

class WelcomeControllerTest extends TestCase
{

    public function testIndex()
    {
        $a = [
            'androidid' => 'a2e4a4d981c56612a97787ebb044d08a568c833b1ad67eebbaab3bd0e7a343ba',
            'device_info' => '{"brand":"HONOR","manufacturer":"HONOR","model":"LGE-AN00","product":"LGE-AN00","osType":"android","osVersionName":"12","osVersionCode":31,"platformVersionName":"1.091","platformVersionCode":1091,"language":"zh","region":"CN","screenWidth":1224,"screenHeight":2565,"timeZone":"GMT+08:00","deviceType":"phone","emuiApiLevel":"33","emuiVer":"6.0.0","vendorOsName":"magicUI","vendorOsVersion":"6.0.0","fontScale":1,"characteristics":"default","windowWidth":1224,"windowHeight":2565,"cutout":[],"statusBarHeight":99,"pixelRatio":3.25,"engineProvider":"huawei","screenDensity":3.25,"screenLogicWidth":750,"screenLogicHeight":1572,"windowLogicWidth":750,"windowLogicHeight":1572,"marketingName":"Magic4","harmonyOSVer":""}',
            'device_no' => 'a2e4a4d981c56612a97787ebb044d08a568c833b1ad67eebbaab3bd0e7a343ba',
            'package' => 'com.beidao.kuaiying.zsy',
            'send_order_id' => '3458239',
            'timestamp' => '1657561236',
        ];
        ksort($a);
        dump($a);



        $key       = 'a!A&AFRWT65Nb3NlklezUiqHyQAA@Z8M';
        $sign = _sign($a, $key);
        dump($sign);
    }
}
