Commit d0dbce7
authored
fixed 批量生成接口 报错
报错信息如下:
> Warning: count(): Parameter must be an array or an object that implements Countable in … // PHP 7.2 起
自 PHP 7.2 起 对 count 函数参数类型加了限制,数组或者 `Countable` 对象,所以这里改成 !empty 更为合适并且兼容。1 parent 73e1af2 commit d0dbce7
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | | - | |
| 313 | + | |
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
| |||
2437 | 2437 | | |
2438 | 2438 | | |
2439 | 2439 | | |
2440 | | - | |
| 2440 | + | |
0 commit comments