| 1234567891011121314151617181920212223242526 |
- <?php
- namespace addons\QiJuhe\common\service;
- use yii\base\BaseObject;
- class BaseService extends BaseObject
- {
- public $error;
- public function __construct($config = [])
- {
- foreach ($config as $key => $val) {
- if (property_exists($this, $key)) {
- $this->{$key} = $val;
- }
- }
- }
- public function error($msg): bool
- {
- $this->error = $msg;
- return false;
- }
- }
|