Commit e8d1dcf6 authored by nanahira's avatar nanahira

sapi

parent ed21fd47
Pipeline #4443 failed with stages
in 30 minutes and 30 seconds
......@@ -67,7 +67,7 @@ public class MyCardHelper {
Dictionary<String, String> header_list = new Dictionary<String, String>();
header_list.Add("Content-Type", "application/json");
byte[] data_bytes = Encoding.UTF8.GetBytes(data_str);
WWW www = new WWW("https://api.moecube.com/accounts/signin", data_bytes, header_list);
WWW www = new WWW("https://sapi.moecube.com:444/accounts/signin", data_bytes, header_list);
while (!www.isDone) {
if (Application.internetReachability == NetworkReachability.NotReachable || !string.IsNullOrEmpty(www.error))
{
......@@ -99,7 +99,7 @@ public class MyCardHelper {
header_list.Add("Authorization", auth_str);
header_list.Add("Content-Type", "application/x-www-form-urlencoded");
byte[] meta = new byte[1];
WWW www = new WWW("https://api.moecube.com/ygopro/match?locale=zh-CN&arena=" + matchType, meta, header_list);
WWW www = new WWW("https://sapi.moecube.com:444/ygopro/match?locale=zh-CN&arena=" + matchType, meta, header_list);
while (!www.isDone) {
if (Application.internetReachability == NetworkReachability.NotReachable || !string.IsNullOrEmpty(www.error))
{
......@@ -119,7 +119,7 @@ public class MyCardHelper {
public static void DownloadFace(string name) {
try {
WWW www = new WWW("https://api.moecube.com/accounts/users/"+WWW.EscapeURL(name, Encoding.UTF8)+".avatar");
WWW www = new WWW("https://sapi.moecube.com:444/accounts/users/"+WWW.EscapeURL(name, Encoding.UTF8)+".avatar");
while (!www.isDone) {
if (Application.internetReachability == NetworkReachability.NotReachable || !string.IsNullOrEmpty(www.error))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment