更改为测试服务器,广告队列判空
This commit is contained in:
parent
768f8261da
commit
1e350fbb4d
@ -20,7 +20,7 @@ public delegate void ChangeLanguageDelegate();
|
|||||||
|
|
||||||
public static class App
|
public static class App
|
||||||
{
|
{
|
||||||
public static string Host = "http://192.168.0.101:5085/";
|
public static string Host = "http://192.168.0.101:5083/";
|
||||||
|
|
||||||
public static string AppVersion = Application.version;
|
public static string AppVersion = Application.version;
|
||||||
|
|
||||||
@ -202,17 +202,17 @@ public static class App
|
|||||||
InitLanguage();
|
InitLanguage();
|
||||||
#if !UNITY_EDITOR
|
#if !UNITY_EDITOR
|
||||||
//测试服务器
|
//测试服务器
|
||||||
//Host = "http://pf.juze.pro/";
|
Host = "http://pf.juze.pro/";
|
||||||
//UdpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 21000);
|
UdpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 21000);
|
||||||
//TcpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 21001);
|
TcpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 21001);
|
||||||
//线上
|
//线上
|
||||||
//Host = "https://wx.powerfun.com.cn/";
|
//Host = "https://wx.powerfun.com.cn/";
|
||||||
//UdpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 11000);
|
//UdpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 11000);
|
||||||
//TcpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 11001);
|
//TcpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 11001);
|
||||||
//本地
|
//本地
|
||||||
Host = "http://192.168.0.101:5085/";
|
//Host = "http://192.168.0.101:5085/";
|
||||||
UdpAddress = new IPEndPoint(IPAddress.Parse("192.168.0.97"), 11000);
|
//UdpAddress = new IPEndPoint(IPAddress.Parse("192.168.0.97"), 11000);
|
||||||
TcpAddress = new IPEndPoint(IPAddress.Parse("192.168.0.102"), 21001);
|
//TcpAddress = new IPEndPoint(IPAddress.Parse("192.168.0.102"), 21001);
|
||||||
Debug.unityLogger.logEnabled = false;
|
Debug.unityLogger.logEnabled = false;
|
||||||
#else
|
#else
|
||||||
//Host = "http://pf.juze.pro/";
|
//Host = "http://pf.juze.pro/";
|
||||||
|
|||||||
@ -350,8 +350,11 @@ public class MainController : BaseScene
|
|||||||
{
|
{
|
||||||
App.adQueue.Enqueue(_ad);
|
App.adQueue.Enqueue(_ad);
|
||||||
}
|
}
|
||||||
var ad = App.adQueue.Dequeue();
|
if (App.adQueue.Count > 0)
|
||||||
UIManager.ShowActivityAdPanel(ad.Id, App.GetLocalLanguage() == "zh"? ad.DetailUrl: ad.GlobalDetailUrl, ad.Url + $"?Token={App.CurrentUser.cookie}");
|
{
|
||||||
|
var ad = App.adQueue.Dequeue();
|
||||||
|
UIManager.ShowActivityAdPanel(ad.Id, App.GetLocalLanguage() == "zh" ? ad.DetailUrl : ad.GlobalDetailUrl, ad.Url + $"?Token={App.CurrentUser.cookie}");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -125,7 +125,7 @@ public class ActivityController : PFUIPanel
|
|||||||
|
|
||||||
private void Share(int type,int id)
|
private void Share(int type,int id)
|
||||||
{
|
{
|
||||||
string url = $"http://192.168.0.101:3081/Activity/LightUpChina/Share?userId={App.CurrentUser.Id}";
|
string url = $"http://pfweb.juze.pro/Activity/LightUpChina/Share?userId={App.CurrentUser.Id}";
|
||||||
if (type < 2)
|
if (type < 2)
|
||||||
{
|
{
|
||||||
if (App.weChatController.IsWeChatAppInstalled())
|
if (App.weChatController.IsWeChatAppInstalled())
|
||||||
@ -180,6 +180,7 @@ public class ActivityController : PFUIPanel
|
|||||||
|
|
||||||
public void Initial(string url)
|
public void Initial(string url)
|
||||||
{
|
{
|
||||||
|
Debug.Log(url);
|
||||||
if (this.url != url)
|
if (this.url != url)
|
||||||
{
|
{
|
||||||
this.url = url;
|
this.url = url;
|
||||||
|
|||||||
@ -1,19 +1,19 @@
|
|||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using ZenFulcrum.EmbeddedBrowser;
|
//using ZenFulcrum.EmbeddedBrowser;
|
||||||
|
|
||||||
public class test : MonoBehaviour
|
public class test : MonoBehaviour
|
||||||
{
|
{
|
||||||
// Start is called before the first frame update
|
// Start is called before the first frame update
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
var b = transform.Find("Browser (GUI)").GetComponent<Browser>();
|
//var b = transform.Find("Browser (GUI)").GetComponent<Browser>();
|
||||||
b.EvalJS("navigator.pfLang = 'zh'");
|
//b.EvalJS("navigator.pfLang = 'zh'");
|
||||||
b.RegisterFunction("Test", args =>
|
//b.RegisterFunction("Test", args =>
|
||||||
{
|
//{
|
||||||
|
|
||||||
});
|
//});
|
||||||
}
|
}
|
||||||
void Test(string str, int i) { }
|
void Test(string str, int i) { }
|
||||||
// Update is called once per frame
|
// Update is called once per frame
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user