UsersControllerTest.php 1.4 KB

12345678910111213141516171819202122232425
  1. <?php
  2. namespace Http\Controllers\QuickApp\Oauth;
  3. use App\Http\Controllers\QuickApp\Oauth\UsersController;
  4. use PHPUnit\Framework\TestCase;
  5. class UsersControllerTest extends \TestCase
  6. {
  7. public function testIndex()
  8. {
  9. $res = $this->post('http://localhost/api/login', [
  10. "androidid"=>"c97183d00246295b78a997e914434b258129c3431aa32e95b5c04d585722030a",
  11. "device_info"=>'{"brand":"HONOR","manufacturer":"HONOR","model":"CMA-AN40","product":"CMA-AN40","osType":"android","osVersionName":"11","osVersionCode":30,"platformVersionName":"1.091","platformVersionCode":1091,"language":"zh","region":"CN","screenWidth":720,"screenHeight":1474,"timeZone":"GMT+08:00","deviceType":"phone","emuiApiLevel":"31","emuiVer":"5.0.0","vendorOsName":"magicUI","vendorOsVersion":"5.0.0","fontScale":1,"characteristics":"default","windowWidth":720,"windowHeight":1474,"cutout":[],"statusBarHeight":48,"pixelRatio":2,"engineProvider":"huawei","screenDensity":2,"screenLogicWidth":750,"screenLogicHeight":1535,"windowLogicWidth":750,"windowLogicHeight":1535,"marketingName":"荣耀Play6T","harmonyOSVer":""}',
  12. "device_no"=>"c97183d00246295b78a997e914434b258129c3431aa32e95b5c04d585722030a",
  13. "package"=>"com.beidao.kuaiying.zsy",
  14. "send_order_id"=>"3209714",
  15. "timestamp"=>"1657678169",
  16. "sign" => "65bc2fe65735c21733c1a3631c01a274",
  17. ]);
  18. dump($res);
  19. }
  20. }