50], [['province', 'city', 'region', 'begin_time', 'end_time'], 'string', 'max' => 20], [['location_detail'], 'string', 'max' => 255], [['lat', 'lng'], 'string', 'max' => 32], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'name' => '门店名称', 'province' => '省', 'province_id' => '省ID', 'city' => '市', 'city_id' => '市ID', 'region' => '区', 'region_id' => '区ID', 'location_detail' => '门店具体位置', 'content' => '门店内容', 'lat' => '纬度', 'lng' => '经度', 'begin_time' => '营业开始时间', 'end_time' => '营业结束时间', 'status' => '1-营业 0-停业', 'sort' => '排序', 'created_at' => '添加时间', 'updated_at' => '修改时间', 'is_delete' => '是否删除,0=否,1=是', 'deleted_at' => '删除时间', 'user_id' => '用户id', 'pic_urls' => '轮播图', 'ratio' => '收益比例', 'card_id' => '银行卡', ]; } public static function statusLabels() { return [ '0' => '停业', '1' => '营业', ]; } public function getUser() { return $this->hasOne(User::className(), ['id' => 'user_id'])->where(['is_delete' => 0]); } public static function statusLabels1() { return [ '0' => '待审核', '1' => '通过', '2' => '拒绝', ]; } }