update: 更新fb配置参数, 暴露 fbAppId 读取接口
parent
790b2360d0
commit
61910cbfc1
|
|
@ -254,13 +254,13 @@ namespace Guru.Editor
|
|||
}
|
||||
else
|
||||
{
|
||||
if (_servicesConfig.fb_settings.app_id.IsNullOrEmpty())
|
||||
if (_servicesConfig.fb_settings.fb_app_id.IsNullOrEmpty())
|
||||
{
|
||||
passed = false;
|
||||
AddResultLine($"{MARK_INDENT}{mk_warn} Facebook AppID is missing!", CheckStatus.Warning);
|
||||
_serviceNormalFail++;
|
||||
}
|
||||
if (_servicesConfig.fb_settings.client_token.IsNullOrEmpty())
|
||||
if (_servicesConfig.fb_settings.fb_client_token.IsNullOrEmpty())
|
||||
{
|
||||
passed = false;
|
||||
AddResultLine($"{MARK_INDENT}{mk_warn} Facebook Client Token is missing!", CheckStatus.Warning);
|
||||
|
|
@ -519,14 +519,27 @@ namespace Guru.Editor
|
|||
n = so.FindProperty("IPMSetting");
|
||||
if (null != n)
|
||||
{
|
||||
// AppID
|
||||
p = n.serializedObject.FindProperty("IPMSetting.appID");
|
||||
p.stringValue = _servicesConfig.app_settings.app_id;
|
||||
|
||||
// BundleID
|
||||
p = n.serializedObject.FindProperty("IPMSetting.bundleId");
|
||||
p.stringValue = _servicesConfig.app_settings.bundle_id;
|
||||
// tokenValidTime
|
||||
if (_servicesConfig.app_settings.token_vaild_time > 0)
|
||||
{
|
||||
p = n.serializedObject.FindProperty("IPMSetting.tokenValidTime");
|
||||
p.intValue = _servicesConfig.app_settings.token_vaild_time;
|
||||
}
|
||||
if (_servicesConfig.fb_settings != null)
|
||||
{
|
||||
// FB App ID
|
||||
p = n.serializedObject.FindProperty("IPMSetting.fbAppId");
|
||||
p.stringValue = _servicesConfig.fb_settings.fb_app_id;
|
||||
// FB Client Token
|
||||
p = n.serializedObject.FindProperty("IPMSetting.fbClientToken");
|
||||
p.stringValue = _servicesConfig.fb_settings.fb_client_token;
|
||||
}
|
||||
}
|
||||
|
||||
//---------- AMAZON -----------------------
|
||||
|
|
@ -788,7 +801,7 @@ namespace Guru.Editor
|
|||
{
|
||||
n.ClearArray();
|
||||
n.InsertArrayElementAtIndex(0);
|
||||
n.GetArrayElementAtIndex(0).stringValue = _servicesConfig.fb_settings.app_id;
|
||||
n.GetArrayElementAtIndex(0).stringValue = _servicesConfig.fb_settings.fb_app_id;
|
||||
}
|
||||
|
||||
n = so.FindProperty("clientTokens");
|
||||
|
|
@ -796,7 +809,7 @@ namespace Guru.Editor
|
|||
{
|
||||
n.ClearArray();
|
||||
n.InsertArrayElementAtIndex(0);
|
||||
n.GetArrayElementAtIndex(0).stringValue = _servicesConfig.fb_settings.client_token;
|
||||
n.GetArrayElementAtIndex(0).stringValue = _servicesConfig.fb_settings.fb_client_token;
|
||||
}
|
||||
|
||||
n = so.FindProperty("androidKeystorePath");
|
||||
|
|
|
|||
|
|
@ -74,8 +74,8 @@ namespace Guru
|
|||
[Serializable]
|
||||
public class GuruFbSettings
|
||||
{
|
||||
public string app_id;
|
||||
public string client_token;
|
||||
public string fb_app_id;
|
||||
public string fb_client_token;
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
|
|
|
|||
Loading…
Reference in New Issue