最近,我修改了在开发服务器上创建的网站。然后,我开始将其迁移到主服务器上。最初,我在实时服务器上上传数据库时遇到unicode错误。我在Google上进行了搜索,并发现了堆栈溢出本身(#1273 – Unknown collation: ‘utf8mb4_unicode_520_ci’)的解决方案。我使用了sabba建议的方法,并且有效。稍后当我更改配置文件并加载该链接时。它给了我503错误。错误如下:
服务不可用
由于维护停机或容量问题,服务器暂时无法满足您的请求。请稍后再试。
此外,尝试使用错误文档来处理请求时遇到503服务不可用错误
答案 0 :(得分:0)
按照步骤进行检查,
启用WP_DEBUG
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Scaling : MonoBehaviour
{
public GameObject objectToScale;
public float duration = 1f;
public Vector3 minSize;
public Vector3 maxSize;
public bool scaleUp = false;
public Coroutine scaleCoroutine;
private void Start()
{
objectToScale.transform.localScale = minSize;
}
private void Update()
{
if (Input.GetKeyDown(KeyCode.G))
{
scaleUp = !scaleUp;
if (scaleCoroutine != null)
StopCoroutine(scaleCoroutine);
if (scaleUp)
{
scaleCoroutine = StartCoroutine(ScaleOverTime(objectToScale, maxSize, duration));
}
else
{
scaleCoroutine = StartCoroutine(ScaleOverTime(objectToScale, minSize, duration));
}
}
}
private IEnumerator ScaleOverTime(GameObject targetObj,
Vector3 toScale, float duration)
{
float counter = 0;
Vector3 startScaleSize = targetObj.transform.localScale;
while (counter < duration)
{
counter += Time.deltaTime;
targetObj.transform.localScale = Vector3.Lerp(startScaleSize, toScale, counter / duration);
yield return null;
}
}
}