augushong

Results 108 comments of augushong

/home/augushong/project/aphpnsfw/public/static/lib/layui/layui.js text/plain /home/augushong/project/aphpnsfw/public/static/lib/layui/css/layui.css text/plain /home/augushong/project/aphpnsfw/public/static/js/common.js inode/x-empty /home/augushong/project/aphpnsfw/public/static/lib/jquery/jquery-3.3.1.min.js text/plain /home/augushong/project/aphpnsfw/public/static/lib/layui/lay/modules/element.js text/plain /home/augushong/project/aphpnsfw/public/favicon.ico image/x-icon 截图似乎没能生效,以上是我输出的内容,输出文件和解析的mimeType,显然,css返回的是text/plain

The version of php8.4 seems to be the version in docker, so I tried php8.4. I just read the document and found that 8.3 is recommended, but I switched the...

你应该直接把mobile也放到whereOr的数组里。

那就有问题了,先用whereQuery试试,里面一个一个调用whereOr,

我咋没看出来区别啊。

第一个写法不对。没有这种用法。 第一种这样写法才对 $whereOr = [] $whereOr[] = ['name', 'like', '%thinkphp'] $whereOr[] = ['name', 'like', '%thinkphp'] $whereOr[] = ['name', 'like', '%thinkphp']

应该是and. whereOr方法内的会组成or查询。 最近用是这样用的,但是老版本没印象了。 看下文档有没有使用指导吧。

我想要的跟when还不太一样,不需要跟when这么灵活,whereIf的用法,跟where相比,只是,第一个参数是布尔值,其余的参数跟where一样,只不过延后了一位。 比如: ``` if(!empty($id)){ $model->where('user_id',$id) } ``` 用whereIf ``` $model->whereIf(!empty($id),'user_id',$id); ``` 其他的whereIn,whereNotIn等方法都这样,变成whereIfIn,whereIfNotIn。

箭头函数的写法倒是简单些。 可以再讨论讨论。

好像不是-v或-vvv导致的,就是没有捕捉。 这个问题好像会导致一些log捕捉不到。我也忘了什么问题了,唉。