/** * delete store data * @param $channelId,string */ public static function deleteStoreQrcode($channelId, $qrcodeId) { $channelInfo = Channel::getEnableByChannelId($channelId); if (empty($channelInfo->origin)) { throw new InvalidParameterException('invaild channelId'); } $field = $channelInfo->origin; $where = [$field . '.qrcodeId' => $qrcodeId]; Store::updateAll([$field => null], $where); }