|
|
@@ -2,103 +2,12 @@
|
|
|
|
|
|
namespace common\models;
|
|
|
|
|
|
-/**
|
|
|
- * This is the model class for table "xhMerchantExtend".
|
|
|
- *
|
|
|
- * @property int $id
|
|
|
- * @property int $merchantId 商户id
|
|
|
- * @property int $init 整体初始化 0没有 1有
|
|
|
- * @property string $webTitle 站点标题
|
|
|
- * @property string $webKeyword 关键词
|
|
|
- * @property string $webDescription 站点描述
|
|
|
- * @property int $wxMenuInit 微信菜单初始化 0没有 1有
|
|
|
- * @property int $wxTMessageInit 模板消息初始化 0没有 1有
|
|
|
- * @property int $recharge 充值功能 0没有开启 1开启
|
|
|
- * @property int $integral 积分功能默认开启,0表示还可以修改积分相应的等级 1表示不能修改
|
|
|
- * @property string $gradeList 积分等级列表
|
|
|
- * @property int $giveCoupon 关注是否赠送代金劵 0不赠送 1赠送
|
|
|
- * @property string $giveCouponPrice 代金劵金额
|
|
|
- * @property string $couponMeetPrice 使用代金劵需要满足金额
|
|
|
- * @property int $couponValidity 代金劵有效期
|
|
|
- * @property int $payment 支付功能 0没有 1开启
|
|
|
- * @property string $wxAppId 微信 appid
|
|
|
- * @property string $wxPayMerchantId 微信支付商户id
|
|
|
- * @property string $wxPayKey 微信支付密钥
|
|
|
- * @property string $alipayPId 支付宝商户id
|
|
|
- * @property string $alipayKey 支付宝密钥
|
|
|
- * @property string $alipayAccount 支付宝帐号
|
|
|
- * @property string $alipayAccountName 支付宝帐户的姓名
|
|
|
- * @property string $rrkdKey 人人快递密钥
|
|
|
- * @property string $createTime 创建时间
|
|
|
- * @property string $updateTime
|
|
|
- * @property string $mergeGatheringQrcodeUrl 合并后微信收款二维码
|
|
|
- * @property string $mergeGatheringQrcodeUrlAlipay 合并后支付宝收款二维码
|
|
|
- * @property tinyint $generalMerchant 是否是普通商户:0:不是(默认);1:是
|
|
|
- */
|
|
|
class xhMerchantExtend extends xhBaseModel
|
|
|
{
|
|
|
- /**
|
|
|
- * @inheritdoc
|
|
|
- */
|
|
|
+
|
|
|
public static function tableName()
|
|
|
{
|
|
|
return 'xhMerchantExtend';
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * @inheritdoc
|
|
|
- */
|
|
|
- public function rules()
|
|
|
- {
|
|
|
- return [
|
|
|
- [['merchantId', 'init', 'wxMenuInit', 'wxTMessageInit', 'recharge', 'integral', 'giveCoupon', 'couponValidity', 'payment', 'generalMerchant'], 'integer'],
|
|
|
- [['giveCouponPrice', 'couponMeetPrice'], 'number'],
|
|
|
- [['createTime'], 'required'],
|
|
|
- [['createTime', 'updateTime'], 'safe'],
|
|
|
- [['webTitle', 'wxPayMerchantId', 'alipayAccountName'], 'string', 'max' => 20],
|
|
|
- [['webKeyword', 'wxAppId','miniAppId', 'alipayKey', 'rrkdKey', 'mergeGatheringQrcodeUrl', 'mergeGatheringQrcodeUrlAlipay'], 'string', 'max' => 100],
|
|
|
- [['webDescription', 'gradeList'], 'string', 'max' => 500],
|
|
|
- [['wxPayKey', 'alipayPId', 'alipayAccount'], 'string', 'max' => 50],
|
|
|
- [['merchantId'], 'unique'],
|
|
|
- ];
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * @inheritdoc
|
|
|
- */
|
|
|
- public function attributeLabels()
|
|
|
- {
|
|
|
- return [
|
|
|
- 'id' => 'ID',
|
|
|
- 'merchantId' => 'Merchant ID',
|
|
|
- 'init' => 'Init',
|
|
|
- 'webTitle' => 'Web Title',
|
|
|
- 'webKeyword' => 'Web Keyword',
|
|
|
- 'webDescription' => 'Web Description',
|
|
|
- 'wxMenuInit' => 'Wx Menu Init',
|
|
|
- 'wxTMessageInit' => 'Wx Tmessage Init',
|
|
|
- 'recharge' => 'Recharge',
|
|
|
- 'integral' => 'Integral',
|
|
|
- 'gradeList' => 'Grade List',
|
|
|
- 'giveCoupon' => 'Give Coupon',
|
|
|
- 'giveCouponPrice' => 'Give Coupon Price',
|
|
|
- 'couponMeetPrice' => 'Coupon Meet Price',
|
|
|
- 'couponValidity' => 'Coupon Validity',
|
|
|
- 'payment' => 'Payment',
|
|
|
- 'wxAppId' => 'Wx App ID',
|
|
|
- 'miniAppId' => 'miniAppId',
|
|
|
- 'wxPayMerchantId' => 'Wx Pay Merchant ID',
|
|
|
- 'wxPayKey' => 'Wx Pay Key',
|
|
|
- 'alipayPId' => 'Alipay Pid',
|
|
|
- 'alipayKey' => 'Alipay Key',
|
|
|
- 'alipayAccount' => 'Alipay Account',
|
|
|
- 'alipayAccountName' => 'Alipay Account Name',
|
|
|
- 'rrkdKey' => 'Rrkd Key',
|
|
|
- 'createTime' => 'Create Time',
|
|
|
- 'updateTime' => 'Update Time',
|
|
|
- 'mergeGatheringQrcodeUrl' => 'Merge Gathering Qrcode Url',
|
|
|
- 'mergeGatheringQrcodeUrlAlipay' => 'Merge Gathering Qrcode Url Alipay',
|
|
|
- 'generalMerchant' => 'General Merchant',
|
|
|
- ];
|
|
|
- }
|
|
|
}
|