/// <summary> /// TOP API: e56.logistics.dummy.send /// </summary> public bool LogisticesDummySend(LogisticsDummySendRequest request, string access_token) { return(client.Execute(request, new LogisticsSendParser(), true, access_token)); }
public static bool LogisticsDummySend(long tid) { try { ITopClient client = Global.DefulatClient(); LogisticsDummySendRequest req = new LogisticsDummySendRequest(); req.Tid = tid; LogisticsDummySendResponse response = client.Execute(req, Global.SessionKey); if (response.IsError) MessageBox.Show(response.SubErrMsg, "对不起,发货失败!"); return response.Shipping != null ? response.Shipping.IsSuccess : false; } catch (Exception ex) { MessageBox.Show(ex.Message, "对不起,发货失败!", MessageBoxButtons.OK, MessageBoxIcon.Error); return false; } }