111
liyaozhi
2025-11-09 c13b8914228e6a404bd60ee36bf2479383da8f23
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
<?php
 
namespace app\common\service;
 
/**
 * 服务基类
 * Interface BaseService
 * @package app\common\model
 */
Class BaseService
{
    public $error = '';
 
    /**
     * 返回模型的错误信息
     */
    public function getError()
    {
        return $this->error;
    }
 
    /**
     * 是否存在错误
     * @return bool
     */
    public function hasError()
    {
        return !empty($this->error);
    }
}