Login ads: flat 30-day slot, same as InstantAdPay
- Engine (JSON + MySQL twin): login ads are a slot buy (loginSlotCredits 1000,
loginSlotDays 30, loginSlotsMax 3, dwell 10 s). createCampaign pins the budget
to the slot price, sets the 30-day expiry and charges it once, purchased credits
only (credited purchased grade first, the rest burns on-chain; viewing credits
never pay). countLoginSlots counts live member slots (house never counts); a 4th
is refused while 3 are live. Sign-in pick prefers member slots over the house.
The per-day charge loop only runs for legacy login ads with no expiry.
- Day keys on Central time (ctDay / dayKeyNow / today) instead of UTC toISOString,
incl. login lastShownDay, the daily sweep, claim streak and sign-in bonus.
- Beyond IAP: resuming a paused slot obeys the same cap, top-up is refused on a
slot, the audit's days-charged check skips slots, JSON grantWelcome keeps the
purchased grade.
- Ads screen: slot wording, loginSlots { max, used, free } from the API, chip and
cost line show open slots, Launch disabled with an explanation when full; no Top
up on slots; classic dashboard, earning page, admin rate labels and chatbot
(canned answer + FACTS, KNOWLEDGE_DATE 2026-10-18) updated. Cache tags bumped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -483,7 +483,7 @@
|
||||
<p><select id="cType" style="width:100%">
|
||||
<option value="banner">Banner (per impression)</option>
|
||||
<option value="text">Text ad (per impression)</option>
|
||||
<option value="login">Login ad (per day)</option>
|
||||
<option value="login">Login ad (30-day slot)</option>
|
||||
</select></p>
|
||||
<p class="small muted" id="cWhere" style="margin:-4px 0 10px"></p>
|
||||
<p><input id="cName" placeholder="Campaign name" style="width:100%"></p>
|
||||
@@ -1012,7 +1012,7 @@
|
||||
<script src="/assets/tools.js?v=20261011a"></script>
|
||||
<script src="/assets/wallet.js?v=20261018a"></script>
|
||||
<script src="/assets/promo.js?v=20261009b"></script>
|
||||
<script src="/assets/my.js?v=20261016a"></script>
|
||||
<script src="/assets/my.js?v=20261018a"></script>
|
||||
<script src="/assets/chat.js?v=20261016a"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user