一个小脚本用来插数据供测试用
@echo off
color 1f
title 开始执行curl,调用接口,造假数据
set times=5
:: 开始执行 新增用户 5个ios / 5个安卓 ......
REM set api=tlogin
REM set ios_param1="platform=1&version=&deviceno=sdfdsfdsfdssd11sds211112ddd&type=3&social_id=sdxcxxcw133esd1sdwewdsdssd11sd12121212&avatar=xxxx.png&nickname=lsdjflsdjfl&sex=1&age=11"
set api=new_user_v01
set api_boot=boot_v01
echo 开始执行 新增用户+启动 5个ios ......
for /l %%i in (1,1,%times%) do (
curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -d "platform=1&deviceno=1sfdasdasdasda1sd%%i" http://192.168.115.197:8091/product/%api% >>result.txt
curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -d "platform=1&deviceno=1sfdasdasdasda1sd%%i" http://192.168.115.197:8091/product/%api_boot% >>result.txt
)
echo 结束执行 新增用户 5个ios ......
echo 开始执行 新增用户+启动 5个安卓 ......
for /l %%i in (1,1,%times%) do (
echo "platform=2&deviceno=2sfdasdasdasda1sd%%i&channel=%%i"
curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -d "platform=2&deviceno=2sfdasdasdasda1sd%%i&channel=%%i" http://192.168.115.197:8091/product/%api% >>result.txt
curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -d "platform=2&deviceno=2sfdasdasdasda1sd%%i" http://192.168.115.197:8091/product/%api_boot% >>result.txt
)
echo 结束执行 新增用户 5个安卓 ......
echo curl执行完成...
pause & exit