【发布时间】:2021-03-01 18:33:24
【问题描述】:
我试过这个,但对我没用。
我在 DB (Mysql) 中得到了“date_creation”的 NULL 值
我使用预请求脚本选项卡将日期保存到变量中:
var current_timestamp = new Date();
postman.setEnvironmentVariable("current_timestamp", current_timestamp.toISOString());
{
"rib": "123456789",
"code_client": "3",
"taux":"19",
"decouvert" : "150",
"solde" : "8500",
"date_creation" : "{{current_timestamp}}"
}
【问题讨论】:
-
你遇到了什么错误?
-
我没有错误,但我在数据库(Mysql)中得到了 NULL 值