添加跨域
添加服务后台添加
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user