Versione 1.0.17
- Fix saldo pendente - aggiunto bottone markup Telegram - aggionta opzione per registrarsi direttamente su Telegram, senza doversi registrare ad un sito
This commit is contained in:
@@ -14,6 +14,7 @@ import { Api } from '@api'
|
||||
import { toolsext } from '@store/Modules/toolsext'
|
||||
import { static_data } from '@src/db/static_data'
|
||||
import { useUserStore } from '@store/UserStore'
|
||||
import { useNotifStore } from '@store/NotifStore'
|
||||
|
||||
|
||||
import { shared_consts } from '@/common/shared_vuejs'
|
||||
@@ -109,8 +110,14 @@ export const useCircuitStore = defineStore('CircuitStore', {
|
||||
|
||||
},
|
||||
|
||||
async aggiornaSaldo(circuitId: string) {
|
||||
return Api.SendReq('/users/updatesaldo', 'POST', { circuitId })
|
||||
async aggiornaSaldo(circuitId: string, groupname: string) {
|
||||
const userStore = useUserStore()
|
||||
const notifStore = useNotifStore()
|
||||
|
||||
const username = userStore.my.username
|
||||
const lastdr = notifStore.getLastDataRead(username)
|
||||
|
||||
return Api.SendReq('/users/updatesaldo', 'POST', { circuitId, groupname, lastdr })
|
||||
.then((res) => {
|
||||
if (res.data.ris)
|
||||
tools.updateMyData(res.data.ris)
|
||||
|
||||
Reference in New Issue
Block a user