quanwei
2025-11-21 2d9362ae6f528f57e6133d5d80f0b633c24e8eb6
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);
    }
}