- Add debug outputs in NetworkService for bank profile synchronization and adjust default installation status for new apps.
This commit is contained in:
parent
8d0eae8ec0
commit
f28311b5cf
@ -561,6 +561,9 @@ void NetworkService::syncBankProfilesFromServer() {
|
||||
}
|
||||
|
||||
const QJsonObject profileData = profileResult.toObject();
|
||||
qDebug() << "[syncBankProfilesFromServer] profileData keys:" << profileData.keys()
|
||||
<< "bank_profiles isArray:" << profileData["bank_profiles"].isArray()
|
||||
<< "bank_profiles size:" << profileData["bank_profiles"].toArray().size();
|
||||
const QJsonArray bankProfiles = profileData["bank_profiles"].toArray();
|
||||
|
||||
// Маппинг apiId → локальный device_id
|
||||
@ -606,7 +609,7 @@ void NetworkService::syncBankProfilesFromServer() {
|
||||
newApp.name = configSettings.value(bankName + "/name", bankName).toString();
|
||||
newApp.package = configSettings.value(bankName + "/android_package_name").toString();
|
||||
newApp.status = (bpState == "disabled") ? "off" : "active";
|
||||
newApp.install = false;
|
||||
newApp.install = true;
|
||||
newApp.pinCodeChecked = false;
|
||||
newApp.bankProfileId = bpId;
|
||||
newApp.fullName = fullName;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user