添加跨域

添加服务后台添加
This commit is contained in:
2025-12-23 10:28:15 +08:00
parent eeb443b225
commit 3f6112d6f1
6 changed files with 75 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
<?php
namespace app\admin\server;
use app\admin\model\MomentsModel;
use think\Db;
class MomentsServer
{
public static function getMoments()
{
$data = MomentsModel::with([
'getStaff'=>function ($query) {},
'getOrder'=>function ($query) {}
])
->order('id desc')
->select();
return $data;
}
}