///// <summary> ///// TenPayV3UnifiedorderRequestData_SceneInfo 构造函数 ///// </summary> //public TenPayV3UnifiedorderRequestData_SceneInfo() //{ // store_info = new Store_Info(); //} /// <summary> /// TenPayV3UnifiedorderRequestData_SceneInfo 构造函数 /// </summary> /// <param name="isH5Pay">是否为H5支付</param> /// <param name="h5Info">当isH5Pay为true时填写,可以使用TenPayV3UnifiedorderRequestData_SceneInfo.GetH5InfoInstance<T>()方法获得</param> public TenPayV3UnifiedorderRequestData_SceneInfo(bool isH5Pay, IH5_Info h5Info = null) { if (!isH5Pay) { store_info = new Store_Info(); } else { h5_info = h5Info; } }
public Scene_Info(IH5_Info _h5_info) { this.h5_info = Newtonsoft.Json.JsonConvert.SerializeObject(_h5_info); }