4.写入

方法:写入数据 |参数|类型|说明| |-|-|-| |table_name|string|这个是当前项目名称,填写名称比如是:微信,因为中文所以需要url编码| |type|string|type=0:非重复的内容才写入,重复内容不会被写入,<br>type=1:是重复的内容都写入| |target_data|string|要写的内容,比如你的列表是,账号,密码,金币,那你写的时候,必须是,账号----密码----金币这样的格式写,这样数据库就正常分割并且写入成功。必须使用url编码才可以传| ```lua 接口地址 get提交 http://192.168.1.10:85/insert_data?table_name=%E5%BE%AE%E4%BF%A1&type=0&target_data=4wxid%5Fdeqwdkdq122----dq1wqdqe----6231801123210321----%7B3533%2C%7B52525%7D%7D 成功返回 {"message":"Data inserted successfully."} 失败返回 {"message":"Data already exists or invalid request."} ``` ![image.png](https://cos.easydoc.net/42399901/files/lvjlwpit.png)