Example #1
0
 /// <summary>
 /// 修改货架
 /// </summary>
 /// <param name="shelf"></param>
 /// <param name="appId"></param>
 /// <param name="appSecret"></param>
 /// <returns></returns>
 public static ReturnCode UpdateShelf(Shelf shelf, string appId, string appSecret)
 {
     var url = "https://api.weixin.qq.com/merchant/shelf/mod?access_token=";
     var access_token = WeiXin.GetAccessToken(appId, appSecret);
     url = url + access_token;
     var json = Util.HttpPost2(url, Util.ToJson(shelf));
     return Util.JsonTo<ReturnCode>(json);
 }
Example #2
0
 /// <summary>
 /// 修改货架
 /// </summary>
 /// <param name="shelf"></param>
 /// <returns></returns>
 public static ReturnCode UpdateShelf(Shelf shelf)
 {
     WeiXin.CheckGlobalCredential();
     return UpdateShelf(shelf, WeiXin.AppID, WeiXin.AppSecret); 
 }
Example #3
0
 /// <summary>
 /// 添加货架
 /// </summary>
 /// <param name="shelf"></param>
 /// <returns></returns>
 public static AddShelfResult AddShelf(Shelf shelf)
 {
     WeiXin.CheckGlobalCredential();
     return AddShelf(shelf, WeiXin.AppID, WeiXin.AppSecret);
 }