[积分商城]优化对接API

This commit is contained in:
2026-03-30 11:47:32 +08:00
parent b30ef21780
commit 4a42899bfe
55 changed files with 835 additions and 1241 deletions

View File

@@ -19,7 +19,7 @@ class Address extends Backend
protected array|string $preExcludeFields = ['id', 'create_time', 'update_time'];
protected array $withJoinTable = ['mallUser'];
protected array $withJoinTable = ['playxUserAsset'];
protected string|array $quickSearchField = ['id'];
@@ -52,10 +52,10 @@ class Address extends Backend
*/
list($where, $alias, $limit, $order) = $this->queryBuilder();
$res = $this->model
->with(['mallUser' => function ($query) {
->with(['playxUserAsset' => function ($query) {
$query->field('id,username');
}])
->visible(['mallUser' => ['username']])
->visible(['playxUserAsset' => ['username']])
->alias($alias)
->where($where)
->order($order)