augushong

Results 108 comments of augushong

这人能处啊,有事是真上. ❥(^_-)

能否考虑增加一个类似`before_read_field`的事件,能够支持`column`操作和其他聚合操作`sum`等. 事件接收`Query`对象和字段的类型,比如`column`,`sum`. 就像这样: ``` Db::event('before_read_field', function (Query $query,$read_option) { // $read_option = `column`或`sum` Sass::sqlSelectOption($query); return $query; }); ``` 我目前在应用内全局注册了这个事件,增加一个通用的查询条件: ``` $query->where('sass_uid', Sass::getUid()); ``` 但是对于`sum`操作或`column`操作却要专门写一下这个条件,感觉很不统一. 或者`read_option`是`$query`里的一个属性. 再或者干脆把`before_select`和`before_find`,统一都改成`before_read`.不过这样改动了旧的接口. 再或者依次增加`before_column`,`before_sum`之类的事件.这样似乎相比于其他的改动不是复杂.

I use vscode. Now the prompt function only has the prompt like copilot, and there is no automatic completion of the drop-down selection box. I prefer auto completion with drop-down...

but there is no way to set anying. ![图片](https://user-images.githubusercontent.com/31880431/189637651-f9213e5b-ee47-47c0-9ef7-fb1caaec17fd.png) ![图片](https://user-images.githubusercontent.com/31880431/189637978-1f30479a-db21-43e0-9333-7be309e4009a.png) ![图片](https://user-images.githubusercontent.com/31880431/189638232-d5173bb3-e28b-4d11-9e16-48b3e45b5ca1.png)

依赖的,意思是该升级了

这个改起来还需要慎重,最好能同时兼容flysystem的1版本和新版本。

我之前设想过,tp本身只是使用了flysystem的操作。其实自己抽象一套方法出来,再做个扩展库,根据composer加载的版本调用就行。 但是比较忙,没心思弄。

恩,这样其实是也很好很专业。

什么意思,改的什么效果