Browse Source

创建商家

shish 6 years ago
parent
commit
70ae8a3f2c

+ 1 - 65
common/models/xhMerchantAccount.php

@@ -2,76 +2,12 @@
 
 
 namespace common\models;
 namespace common\models;
 
 
-/**
- * This is the model class for table "xhMerchantAccount".
- *
- * @property int $id
- * @property string $subjectTitles 商事主体名称
- * @property string $businessLicense 营业执照
- * @property string $idCard 身份证正面
- * @property string $idCardBack 身份证背面
- * @property string $bankCard 银行卡照片
- * @property string $bankCardInfo 银行卡开户行信息
- * @property string $bankCardNo 银行卡号
- * @property int $userId 用户id
- * @property string $alipayId 支付宝用户id
- * @property string $mobile 联系电话
- * @property string $telephone 座机,如 0592-3531672
- * @property string $applyName 要申请公众号的名称
- * @property string $email 联系邮箱
- * @property string $createTime 创建时间
- * @property string $updateTime
- */
 class xhMerchantAccount extends xhBaseModel
 class xhMerchantAccount extends xhBaseModel
 {
 {
-    /**
-     * @inheritdoc
-     */
+
     public static function tableName()
     public static function tableName()
     {
     {
         return 'xhMerchantAccount';
         return 'xhMerchantAccount';
     }
     }
 
 
-    /**
-     * @inheritdoc
-     */
-    public function rules()
-    {
-        return [
-            [['userId'], 'integer'],
-            [['createTime'], 'required'],
-            [['createTime', 'updateTime'], 'safe'],
-            [['subjectTitles', 'bankCardInfo', 'bankCardNo', 'alipayId', 'email'], 'string', 'max' => 50],
-            [['businessLicense', 'idCard', 'idCardBack', 'bankCard'], 'string', 'max' => 100],
-            [['mobile', 'telephone', 'applyName'], 'string', 'max' => 20],
-            [['businessLicense'], 'unique'],
-            [['bankCardNo'], 'unique'],
-            [['email'], 'unique'],
-        ];
-    }
-
-    /**
-     * @inheritdoc
-     */
-    public function attributeLabels()
-    {
-        return [
-            'id' => 'ID',
-            'subjectTitles' => 'Subject Titles',
-            'businessLicense' => 'Business License',
-            'idCard' => 'Id Card',
-            'idCardBack' => 'Id Card Back',
-            'bankCard' => 'Bank Card',
-            'bankCardInfo' => 'Bank Card Info',
-            'bankCardNo' => 'Bank Card No',
-            'userId' => 'User ID',
-            'alipayId' => 'Alipay ID',
-            'mobile' => 'Mobile',
-            'telephone' => 'Telephone',
-            'applyName' => 'Apply Name',
-            'email' => 'Email',
-            'createTime' => 'Create Time',
-            'updateTime' => 'Update Time',
-        ];
-    }
 }
 }

+ 1 - 72
common/models/xhMerchantCapital.php

@@ -2,83 +2,12 @@
 
 
 namespace common\models;
 namespace common\models;
 
 
-/**
- * This is the model class for table "xhMerchantCapital".
- *
- * @property int $id
- * @property string $relateId 关联id
- * @property int $capitalType 流水订单的类型 参考configDict capitalType
- * @property string $balance 余额
- * @property int $affectBalance 是否影响商家的可提现余额 0不影响 1影响,如支付宝支付,提现
- * @property string $amount 本次流水金额
- * @property int $io 收支类型 0支出 1收入 2其它
- * @property string $totalIncome 累计收入变化
- * @property string $totalExpend 累计支出变化
- * @property int $payWay 资金收支方式0微信1支付宝2余额3现金,具体请查看配置文件configDict payWay
- * @property string $event 事项,说明,类型的具体解释
- * @property int $merchantId 商家id
- * @property int $userId 用户id
- * @property string $userName 用户名
- * @property string $alipayId 支付宝的uid
- * @property int $operateId 操作人 adminId userId merchantId
- * @property string $remark 备注
- * @property int $addTime 添加时间,时间戳格式
- * @property string $createTime 创建时间
- * @property string $updateTime
- */
 class xhMerchantCapital extends xhBaseModel
 class xhMerchantCapital extends xhBaseModel
 {
 {
-    /**
-     * @inheritdoc
-     */
+
     public static function tableName()
     public static function tableName()
     {
     {
         return 'xhMerchantCapital';
         return 'xhMerchantCapital';
     }
     }
 
 
-    /**
-     * @inheritdoc
-     */
-    public function rules()
-    {
-        return [
-            [['capitalType', 'affectBalance', 'io', 'payWay', 'merchantId', 'userId', 'shopId', 'operateId', 'addTime'], 'integer'],
-            [['balance', 'amount', 'totalIncome', 'totalExpend'], 'number'],
-            [['createTime'], 'required'],
-            [['createTime', 'updateTime'], 'safe'],
-            [['relateId'], 'string', 'max' => 100],
-            [['event', 'userName', 'alipayId'], 'string', 'max' => 50],
-            [['remark'], 'string', 'max' => 500],
-        ];
-    }
-
-    /**
-     * @inheritdoc
-     */
-    public function attributeLabels()
-    {
-        return [
-            'id' => 'ID',
-            'relateId' => 'Relate ID',
-            'capitalType' => 'Capital Type',
-            'balance' => 'Balance',
-            'affectBalance' => 'Affect Balance',
-            'amount' => 'Amount',
-            'io' => 'Io',
-            'totalIncome' => 'Total Income',
-            'totalExpend' => 'Total Expend',
-            'payWay' => 'Pay Way',
-            'event' => 'Event',
-            'merchantId' => 'Merchant ID',
-            'userId' => 'User ID',
-            'userName' => 'User Name',
-            'alipayId' => 'Alipay ID',
-            'operateId' => 'Operate ID',
-            'remark' => 'Remark',
-	        'shopId' => 'shopId',
-            'addTime' => 'Add Time',
-            'createTime' => 'Create Time',
-            'updateTime' => 'Update Time',
-        ];
-    }
 }
 }

+ 1 - 92
common/models/xhMerchantExtend.php

@@ -2,103 +2,12 @@
 
 
 namespace common\models;
 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
 class xhMerchantExtend extends xhBaseModel
 {
 {
-    /**
-     * @inheritdoc
-     */
+
     public static function tableName()
     public static function tableName()
     {
     {
         return 'xhMerchantExtend';
         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',
-        ];
-    }
 }
 }