添加跨域

添加服务后台添加
This commit is contained in:
2025-12-23 10:38:20 +08:00
parent 3f6112d6f1
commit 3482382734
3 changed files with 8 additions and 4 deletions

View File

@@ -10,8 +10,12 @@ class MomentsServer
public static function getMoments()
{
$data = MomentsModel::with([
'getStaff'=>function ($query) {},
'getOrder'=>function ($query) {}
'getStaff'=>function ($query) {
$query->field('id,name');
},
'getOrder'=>function ($query) {
$query->field('id,order_sn');
}
])
->order('id desc')
->select();