| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- namespace addons\Alitopay\common\services;
- use yii\base\BaseObject;
- /**
- * BaseService
- * @package addons\Alitopay\common\services
- */
- class BaseService extends BaseObject
- {
- protected $mall_id;
-
- protected $error_msg;
- public function __construct($mall_id = 0)
- {
- if (is_numeric($mall_id)) {
- $this->setMallId($mall_id);
- } else {
- $this->setMallId(0);
- }
- }
- public function setMallId(int $mall_id)
- {
- $this->mall_id = $mall_id;
- }
-
- public function error(string $msg = '')
- {
- $this->setErrorMsg($msg);
- return false;
- }
- public function setErrorMsg(string $msg)
- {
- $this->error_msg = $msg;
- }
- public function getErrorMsg()
- {
- return $this->error_msg;
- }
- }
|