添加跨域

添加服务后台添加
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,19 @@
<?php
namespace app\admin\model;
use think\Model;
class MomentsModel extends Model
{
protected $name = 'moments';
public function getStaff()
{
return $this->hasOne(StaffModel::class, 'sid', 'id');
}
public function getOrder()
{
return $this->hasOne(OrderModel::class, 'oid', 'id');
}
}