Beispiel #1
0
 /// <summary>
 /// 修改分组商品
 /// </summary>
 /// <param name="group"></param>
 /// <returns></returns>
 public static ReturnCode UpdateProductGroup(UpdateGroupProduct group)
 {
     WeiXin.CheckGlobalCredential();
     return UpdateProductGroup(group, WeiXin.AppID, WeiXin.AppSecret);
 }
Beispiel #2
0
 /// <summary>
 /// 修改分组商品
 /// </summary>
 /// <param name="group"></param>
 /// <param name="appId"></param>
 /// <param name="appSecret"></param>
 /// <returns></returns>
 public static ReturnCode UpdateProductGroup(UpdateGroupProduct group, string appId, string appSecret)
 {
     var url = "https://api.weixin.qq.com/merchant/group/productmod?access_token=";
     var access_token = WeiXin.GetAccessToken(appId, appSecret);
     url = url + access_token;
     var json = Util.HttpPost2(url, Util.ToJson(group));
     return Util.JsonTo<ReturnCode>(json);
 }