50], [['scene_str'], 'string', 'max' => 64], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'merchant_id' => '商户id', 'store_id' => '店铺ID', 'qrcord_id' => '二维码id', 'openid' => '微信openid', 'type' => '1:关注;2:扫描', 'name' => '场景名称', 'scene_str' => '场景值', 'scene_id' => '场景ID', 'status' => '状态', 'created_at' => '创建时间', 'updated_at' => '修改时间', ]; } /** * @return \yii\db\ActiveQuery */ public function getFans() { return $this->hasOne(Fans::class,['openid' => 'openid']); } /** * 关联授权 */ public function getAuth() { return $this->hasOne(Auth::class, ['oauth_client_user_id' => 'openid']); } }