20 lines
656 B
C#
20 lines
656 B
C#
using Newtonsoft.Json;
|
|
using OpenCVForUnity.UnityUtils;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using WpfApp1.Util;
|
|
|
|
public class CxxTest : MonoBehaviour
|
|
{
|
|
|
|
private void Start()
|
|
{
|
|
string _postData = "{\"appId\":\"app_2689762182674139\",\"ticket\":\"voppdxJEFTJMYQPgHjCIWiOp\",\"signature\":\"voppdxJEFTJMYQPgHjCIWiOpapp_2689762182674139iPJ3jv084GEOmGAnr9PrE\"}";
|
|
string sendJson;
|
|
string jiaMiStr = AESHelper.AesEncrypt(_postData, "ict0123456666666aaaabbbbccccdddd");
|
|
sendJson = JsonConvert.SerializeObject(new { requestParam = jiaMiStr });
|
|
Debug.Log(sendJson);
|
|
}
|
|
}
|