| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- use Yii;
- use yii\behaviors\TimestampBehavior;
- use yii\db\ActiveRecord;
- /**
- * This is the model class for table "{{%salesman_new_store}}".
- *
- * @property integer $id
- * @property integer $salesman_saas_id
- * @property integer $store_id
- * @property integer $store_saas_id
- * @property integer $store_mini_id
- * @property string $store_mini_appid
- * @property string $store_mini_errmsg
- * @property integer $store_mini_info
- * @property string $store_mini_info_errmsg
- * @property string $store_mini_pay_apply_id
- * @property string $store_mini_pay_sub_mchid
- * @property string $store_mini_pay_errmsg
- * @property integer $store_ali_mini_id
- * @property string $store_ali_mini_appid
- * @property string $store_ali_mini_errmsg
- * @property string $store_ali_mini_pid
- * @property integer $store_ali_mini_pay
- * @property string $store_ali_mini_pay_errmsg
- * @property string $store_ali_mini_shop_id
- * @property string $store_ali_mini_shop_errmsg
- * @property integer $type
- * @property integer $is_delete
- * @property integer $created_at
- * @property integer $updated_at
- * @property integer $status
- * @property string $store_params
- */
- class SalesmanNewStore extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%salesman_new_store}}';
- }
- public function behaviors()
- {
- return [
- [
- 'class' => TimestampBehavior::class,
- ]
- ];
- }
-
- public function getParams($key) {
- $store_params = json_decode($this->store_params, true);
- if(!is_array($store_params)){
- return '';
- }
- return $store_params[$key] ?? '';
- }
- }
|