Browse Source

更新333

tags/old_version_1
fyf 1 year ago
parent
commit
a08ad2f05a
1 changed files with 0 additions and 41 deletions
  1. +0
    -41
      app/src/main/java/com/bonait/bnframework/business/ConfigData.java

+ 0
- 41
app/src/main/java/com/bonait/bnframework/business/ConfigData.java View File

@@ -162,7 +162,6 @@ public class ConfigData {
* 加载店铺配置
*/
public void LoadingDPPZ() {
//ConfigName.getInstance().AutKey
ConfigName.getInstance().Shop_Name="黑菠萝奶茶机";
ConfigName.getInstance().DeviceId="20020415-test";
}
@@ -213,46 +212,6 @@ public class ConfigData {
localCacheUtils.setBitmapToLocal("image3.png",bitmap3);
localCacheUtils.setBitmapToLocal("image4.png",bitmap4);
}

/**
* 获取订单信息
*/
public void GetOrder(String orderNumber)
{
//https://bpa.black-pa.com:21527/order/order/fullorderbynumber/202305111151562071
// orderNumber="454228787056480256";
//202202211310398967
//String api="https://bpa.black-pa.com:21528/kitchen/api/member-helper/memberinfobywechat/987654321";
Log.i("查询用户接口", ConfigName.getInstance().SaasAddress+ConfigName.getInstance().GetOrder+orderNumber);
HttpUtils.httpGet(MessageName.GetOrderInformation,ConfigName.getInstance().SaasAddress+ConfigName.getInstance().GetOrder+orderNumber);
}

public void SetOrderChanged(OrderStatusChange data)
{
//Authorize
// new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());;
// String header = ConfigName.getInstance().SaasAddress+ConfigName.getInstance().OrderChange+"_["+ Date..Ticks+"]";
// header=AES.encrypt(header);
//密码加密
//String pwdAES = AESCBCUtils.encrypt_AES(AESKey, loginPassword.getText().toString(), AESIv);

String msg= new Json<OrderStatusChange>().objectToJson(OrderStatusChange.class, data);
HttpUtils.httpPost(MessageName.UpdateOrderStatus,ConfigName.getInstance().SaasAddress+ConfigName.getInstance().OrderChange,msg);
}

/**
* 更新版本检测
*/
public void UpdateVersion()
{
VersionMode mode=new VersionMode();
mode.productCode="1668085292913659904";
mode.moduleCode="naichaji";
mode.serverCode="1668175205545807872";
mode.branchCode="1668801915890962433";
String msg= new Json<VersionMode>().objectToJson(VersionMode.class, mode);
HttpUtils.httpPost(MessageName.UpdateVersion,ConfigName.getInstance().UpdateVersion,msg);
}
//endregion
}


Loading…
Cancel
Save