|
|
@@ -2,111 +2,12 @@
|
|
|
|
|
|
namespace common\models;
|
|
|
|
|
|
-/**
|
|
|
- * This is the model class for table "xhMerchant".
|
|
|
- *
|
|
|
- * @property int $id
|
|
|
- * @property string $account 登陆帐号,用户名,域名后缀
|
|
|
- * @property string $merchantName 用户名,店名,公司名
|
|
|
- * @property string $password 密码
|
|
|
- * @property int $manageStyle 经营类型,0零售 1花艺培训学校 2批发商
|
|
|
- * @property int $accountStyle 公众号类型 0服务号 1订阅号 具体看配置文件
|
|
|
- * @property string $logo 花店logo
|
|
|
- * @property int $adminId 花店的管理员id,对应xhAdmin表
|
|
|
- * @property string $wxAppId 微信公众号的appid
|
|
|
- * @property string $wxAppSecret 微信公众号的appsecret
|
|
|
- * @property string $wxUserName 微信原始名 如gh_083d437a9941
|
|
|
- * @property string $wxAliasName 微信别名 如hzgdzh
|
|
|
- * @property string $wxQrcodeUrl 公众号二维码图片
|
|
|
- * @property string $gatheringQrcodeUrl 收款二维码
|
|
|
- * @property string $wxToken 微信token
|
|
|
- * @property string $wxJsApiTicket 微信分享调用jsapi_ticket
|
|
|
- * @property string $wxJsApiTicketExpire 微信分享调用jsapi_ticket过期时间点
|
|
|
- * @property string $wxAccessToken wxAccessToken
|
|
|
- * @property string $wxAccessTokenTime 微信accesstoken过期时间
|
|
|
- * @property string $wxRefreshToken wxAccessToken 的 refresh token
|
|
|
- * @property string $shopName 店名,分店名,用于微信门店创建
|
|
|
- * @property string $shopProvince 省
|
|
|
- * @property string $shopCity 市
|
|
|
- * @property string $shopDist 区县
|
|
|
- * @property string $shopAddress 详细街道地址
|
|
|
- * @property string $shopLat 商店的纬度
|
|
|
- * @property string $shopLong 商店的经度
|
|
|
- * @property string $shopPrecision 商店的精度
|
|
|
- * @property string $shopPhotoList 店面门牌照片 json
|
|
|
- * @property int $agentLevel 代理商等级 0非代理商
|
|
|
- * @property int $status 0待审1审核通过2审核未通过3冻结4解除冻结5自主关闭
|
|
|
- * @property string $createTime 创建时间
|
|
|
- * @property string $updateTime
|
|
|
- */
|
|
|
class xhMerchant extends xhBaseModel
|
|
|
{
|
|
|
- /**
|
|
|
- * @inheritdoc
|
|
|
- */
|
|
|
+
|
|
|
public static function tableName()
|
|
|
{
|
|
|
return 'xhMerchant';
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * @inheritdoc
|
|
|
- */
|
|
|
- public function rules()
|
|
|
- {
|
|
|
- return [
|
|
|
- [['manageStyle', 'accountStyle', 'adminId', 'agentLevel', 'status'], 'integer'],
|
|
|
- [['wxJsApiTicketExpire', 'wxAccessTokenTime', 'createTime', 'updateTime'], 'safe'],
|
|
|
- [['createTime'], 'required'],
|
|
|
- [['account', 'wxUserName', 'wxAliasName', 'shopName'], 'string', 'max' => 50],
|
|
|
- [['merchantName', 'password', 'logo', 'wxAppId', 'wxAppSecret', 'wxQrcodeUrl', 'gatheringQrcodeUrl'], 'string', 'max' => 100],
|
|
|
- [['wxToken', 'wxJsApiTicket', 'wxAccessToken', 'wxRefreshToken'], 'string', 'max' => 500],
|
|
|
- [['shopProvince', 'shopCity', 'shopDist', 'shopAddress', 'shopLat', 'shopLong', 'shopPrecision'], 'string', 'max' => 20],
|
|
|
- [['shopPhotoList'], 'string', 'max' => 1000],
|
|
|
- [['account'], 'unique'],
|
|
|
- [['merchantName'], 'unique'],
|
|
|
- ];
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * @inheritdoc
|
|
|
- */
|
|
|
- public function attributeLabels()
|
|
|
- {
|
|
|
- return [
|
|
|
- 'id' => 'ID',
|
|
|
- 'account' => 'Account',
|
|
|
- 'merchantName' => 'Merchant Name',
|
|
|
- 'password' => 'Password',
|
|
|
- 'manageStyle' => 'Manage Style',
|
|
|
- 'accountStyle' => 'Account Style',
|
|
|
- 'logo' => 'Logo',
|
|
|
- 'adminId' => 'Admin ID',
|
|
|
- 'wxAppId' => 'Wx App ID',
|
|
|
- 'wxAppSecret' => 'Wx App Secret',
|
|
|
- 'wxUserName' => 'Wx User Name',
|
|
|
- 'wxAliasName' => 'Wx Alias Name',
|
|
|
- 'wxQrcodeUrl' => 'Wx Qrcode Url',
|
|
|
- 'gatheringQrcodeUrl' => 'Gathering Qrcode Url',
|
|
|
- 'wxToken' => 'Wx Token',
|
|
|
- 'wxJsApiTicket' => 'Wx Js Api Ticket',
|
|
|
- 'wxJsApiTicketExpire' => 'Wx Js Api Ticket Expire',
|
|
|
- 'wxAccessToken' => 'Wx Access Token',
|
|
|
- 'wxAccessTokenTime' => 'Wx Access Token Time',
|
|
|
- 'wxRefreshToken' => 'Wx Refresh Token',
|
|
|
- 'shopName' => 'Shop Name',
|
|
|
- 'shopProvince' => 'Shop Province',
|
|
|
- 'shopCity' => 'Shop City',
|
|
|
- 'shopDist' => 'Shop Dist',
|
|
|
- 'shopAddress' => 'Shop Address',
|
|
|
- 'shopLat' => 'Shop Lat',
|
|
|
- 'shopLong' => 'Shop Long',
|
|
|
- 'shopPrecision' => 'Shop Precision',
|
|
|
- 'shopPhotoList' => 'Shop Photo List',
|
|
|
- 'agentLevel' => 'Agent Level',
|
|
|
- 'status' => 'Status',
|
|
|
- 'createTime' => 'Create Time',
|
|
|
- 'updateTime' => 'Update Time',
|
|
|
- ];
|
|
|
- }
|
|
|
}
|