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