我正在尝试使用以下方法获取 -24 小时前的时间:
$a = date('Y-m-d H:i:s', strtotime('-1 day', strtotime(date("Y-m-d H:i:s")))); $a = strtotime($a);
计算得很好,但是当我使用变量$a
发送到 API 时,它说该值不是整数。返回的错误是:
400 Invalid 'Query' parameter: json: cannot unmarshal number into Go struct field SearchClause.ClauseChildren.RuleValue of type string
如果我将变量更改为 this:$a = '1583751712';
并将其发送到 API,它绝对可以正常工作。
素胚勾勒不出你