|
|
@@ -33,7 +33,7 @@ import java.util.List; |
|
|
|
|
|
|
|
public class APIServer { |
|
|
|
|
|
|
|
private static String address="https://www.black-pa.com:21996/"; |
|
|
|
private static String address="https://groupmeal.black-pa.com/"; |
|
|
|
|
|
|
|
// private static String address="https://bpa.black-pa.com:21995/"; |
|
|
|
|
|
|
@@ -42,7 +42,7 @@ public class APIServer { |
|
|
|
*/ |
|
|
|
public static void GetDishInformation(IRunT<List<String>> callback,IRunT<String> faultCallback){ |
|
|
|
String url =address+ "saasbase/api/ExternalPlatform/WeighingService/GetGoodsInfo"; |
|
|
|
String key = "64059261-1599-472c-b418-3c18b4e3883e"; |
|
|
|
String key = "a78bb2e8-7007-447b-b378-7ec4e07ec3ee"; |
|
|
|
|
|
|
|
APIHelper.Post(url,new Object(),key,(s)->{ |
|
|
|
MessageLog.ShowInfo(s.toString()); |
|
|
@@ -63,7 +63,7 @@ public class APIServer { |
|
|
|
*/ |
|
|
|
public static void GetOrderInfo(String ChipCode,IRunT<WeighOrderDto> callback,IRunT<String> faultCallback){ |
|
|
|
String url = address+ "order/api/ExternalPlatform/WeighOrder/GetWeighOrderByChipCode"; |
|
|
|
String key = "1bef8f66-1896-46ae-a724-101a709d5a26"; |
|
|
|
String key = "26dc841d-d945-4e1e-968b-cc34a85cedb9"; |
|
|
|
ChipCodeRequiredModel crm = new ChipCodeRequiredModel(ChipCode); |
|
|
|
|
|
|
|
APIHelper.Post(url,crm,key,(s)->{ |
|
|
@@ -84,7 +84,7 @@ public class APIServer { |
|
|
|
*/ |
|
|
|
public static void CreateOrder(AddGoodInfo agi, IRun callback,IRunT<String> faultCallback){ |
|
|
|
String url =address+ "order/api/ExternalPlatform/WeighOrder/AddWeighOrderGoods"; |
|
|
|
String key = "1bef8f66-1896-46ae-a724-101a709d5a26"; |
|
|
|
String key = "26dc841d-d945-4e1e-968b-cc34a85cedb9"; |
|
|
|
AddGoodModel agm = new AddGoodModel(); |
|
|
|
agm.data.add(agi); |
|
|
|
APIHelper.Post(url,agm,key,(s)->{ |
|
|
|