huangsijun
2025-09-22 a78c011de350b188afb03beb2f26a73f35f71986
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
 
namespace app\common\model\settings;
 
use app\common\model\BaseModel;
 
/**
 * 消息字段模型
 */
class MessageSettings extends BaseModel
{
    protected $name = 'message_settings';
    protected $pk = 'message_settings_id';
 
    /**
     * 详情
     */
    public static function detail($message_settings_id)
    {
        return (new static())->find($message_settings_id);
    }
 
    /**
     * 消息详情
     */
    public static function detailByMessageId($message_id,$app_id = '')
    {
        $where["message_id"] = $message_id;
        if($app_id){
            $where["app_id"] = $app_id;
        }
        return (new static())->where($where)->find();
    }
 
    
}