fix user_key reset in promode
This commit is contained in:
parent
93ec261dc0
commit
b21b159b95
@ -116,7 +116,7 @@ public class SCNApp extends Application implements LifecycleObserver
|
||||
|
||||
[X] - perhaps response codes in api (?)
|
||||
|
||||
[ ] - verify recieve
|
||||
[X] - verify recieve
|
||||
|
||||
[ ] - test notification channels
|
||||
|
||||
|
@ -333,7 +333,6 @@ public class ServerCommunication
|
||||
}
|
||||
|
||||
SCNSettings.inst().user_id = json_int(json, "user_id");
|
||||
SCNSettings.inst().user_key = json_str(json, "user_key");
|
||||
SCNSettings.inst().quota_curr = json_int(json, "quota");
|
||||
SCNSettings.inst().quota_max = json_int(json, "quota_max");
|
||||
SCNSettings.inst().promode_server = json_bool(json, "is_pro");
|
||||
|
@ -50,7 +50,7 @@ public class FBMService extends FirebaseMessagingService
|
||||
NotificationService.inst().showForeground(msg);
|
||||
}
|
||||
|
||||
ServerCommunication.ack(msg);
|
||||
ServerCommunication.ack(SCNSettings.inst().user_id, SCNSettings.inst().user_key, msg);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
@ -49,7 +49,6 @@ if ($ispro)
|
||||
[
|
||||
'success' => true,
|
||||
'user_id' => $user_id,
|
||||
'user_key' => $new_userkey,
|
||||
'quota' => $data['quota_today'],
|
||||
'quota_max'=> Statics::quota_max(true),
|
||||
'is_pro' => true,
|
||||
@ -68,7 +67,6 @@ else
|
||||
[
|
||||
'success' => true,
|
||||
'user_id' => $user_id,
|
||||
'user_key' => $new_userkey,
|
||||
'quota' => $data['quota_today'],
|
||||
'quota_max'=> Statics::quota_max(false),
|
||||
'is_pro' => false,
|
||||
|
Loading…
Reference in New Issue
Block a user