| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- /**
- * This is the model class for table "{{%wechat_config}}".
- *
- * @property integer $id
- * @property integer $store_id
- * @property string $app_id
- * @property string $app_secret
- * @property string $ext
- * @property string $mch_id
- * @property string $pay_key
- * @property string $cert_pem
- * @property string $pay_key_url
- * @property string $cert_pem_url
- * @property string $key_pem
- * @property string $name
- * @property integer $type
- * @property integer $created_at
- * @property integer $updated_at
- * @property integer $is_delete
- */
- class WechatConfig extends \yii\db\ActiveRecord
- {
- /**
- * 配置类型
- */
- const TYPE_CONFIG_MINI = 1;
- const TYPE_CONFIG_MP = 2;
- const TYPE_CONFIG_APP = 3;
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%wechat_config}}';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['created_at', 'updated_at', 'is_delete', 'type', 'store_id'], 'integer'],
- [['store_id', 'app_id', 'app_secret'], 'required'],
- [['cert_pem', 'key_pem', 'ext', 'name', 'key_pem_url', 'cert_pem_url'], 'string'],
- [['app_id', 'app_secret', 'mch_id', 'pay_key'], 'string', 'max' => 255],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'store_id' => 'StoreID',
- 'app_id' => 'App ID',
- 'app_secret' => 'App Secret',
- 'mch_id' => 'Mch ID',
- 'pay_key' => 'Key',
- 'cert_pem' => 'Cert Pem',
- 'key_pem' => 'Key Pem',
- 'cert_pem_url' => 'Cert Pem Url',
- 'key_pem_url' => 'Key Pem Url',
- 'type' => '类型,1:小程序,2:公众号,3:app',
- 'ext' => '扩展字段',
- 'name' => '商城微信后台企业名称',
- 'created_at' => '创建时间',
- 'updated_at' => '更新时间',
- 'is_delete' => 'Is Delete',
- ];
- }
- }
|