123

devers devers 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
using System;
using System.Collections.Generic;
using System.Text;
using um_client_net.sao;
using um_client_net.dto.Hash;
using um_client_net.dto;
using System.Collections;

namespace um_client_net.services
{
public class UMSelfService
{
private SelfServiceSAO selfServiceSAO;

public UMSelfService(SelfServiceSAO selfServiceSAO)
{
this.selfServiceSAO = selfServiceSAO;
}

/// <summary>
/// 发起一个新UM的授权或者取消权限请求
/// </summary>
/// <param name="action">请求的服务</param>
/// <param name="para">请求的参数</param>
/// <returns></returns>
public IUMClientResponse execute(string action, Hashtable para)
{
if (string.IsNullOrEmpty(action))
{
throw new Exception("The argument is empty![action=" + action + "]");
}
IUMClientResponse iresponse = this.selfServiceSAO.execute(action, para);
if (iresponse.ReturnCode == -1)
{
Console.WriteLine(iresponse.ReturnMsg);
throw (new UMException(iresponse.ReturnMsg));
}
return iresponse;
}
}
}
...全文
评论 6
收藏 已收藏
分享
返回顶部
devers
新技术前沿 6,128 成员 4,418 内容