@@ -11,9 +11,9 @@ | |||||
"type": "SINGLE", | "type": "SINGLE", | ||||
"filters": [], | "filters": [], | ||||
"attributes": [], | "attributes": [], | ||||
"versionCode": 104, | |||||
"versionName": "1.0.4", | |||||
"outputFile": "robot-xiaochao-v104-202410111604-unsigned-release.apk" | |||||
"versionCode": 105, | |||||
"versionName": "1.0.5", | |||||
"outputFile": "robot-xiaochao-v105-202410281311-unsigned-release.apk" | |||||
} | } | ||||
], | ], | ||||
"elementType": "File" | "elementType": "File" |
@@ -441,7 +441,7 @@ public class ExecuteTheRecipe { | |||||
break; | break; | ||||
case "出菜": | case "出菜": | ||||
ConfigName.RobotIsWorking[deviceNum-1] = true; | ConfigName.RobotIsWorking[deviceNum-1] = true; | ||||
Write_PLC_MainOutdishes(deviceNum,formulation); | |||||
Write_PLC_MainOutdishes(deviceNum,formulation,0); | |||||
ConfigName.RobotIsWorking[deviceNum-1] = false; | ConfigName.RobotIsWorking[deviceNum-1] = false; | ||||
break; | break; | ||||
case "清洗": | case "清洗": | ||||
@@ -1143,7 +1143,7 @@ public class ExecuteTheRecipe { | |||||
* | * | ||||
* @param data | * @param data | ||||
*/ | */ | ||||
public static void Write_PLC_MainOutdishes(int deviceNum,HashMap<String, String> data) { | |||||
public static void Write_PLC_MainOutdishes(int deviceNum,HashMap<String, String> data,int index) { | |||||
try { | try { | ||||
showlog("准备出菜!"); | showlog("准备出菜!"); | ||||
//先延迟 | //先延迟 | ||||
@@ -1164,7 +1164,6 @@ public class ExecuteTheRecipe { | |||||
Wait_Robot_No_Working(deviceNum);//等待机器人空闲 | Wait_Robot_No_Working(deviceNum);//等待机器人空闲 | ||||
boolean isCheck = false; | boolean isCheck = false; | ||||
int index = 0; | |||||
long b = System.currentTimeMillis(); | long b = System.currentTimeMillis(); | ||||
while (!isCheck && !ConfigName.IsForcedEnd[deviceNum-1]){ | while (!isCheck && !ConfigName.IsForcedEnd[deviceNum-1]){ | ||||
if ((System.currentTimeMillis() - b) > 1000 * (whileTime * 3)) { | if ((System.currentTimeMillis() - b) > 1000 * (whileTime * 3)) { | ||||
@@ -1210,7 +1209,7 @@ public class ExecuteTheRecipe { | |||||
} | } | ||||
} | } | ||||
if(!isCheck){ | if(!isCheck){ | ||||
NewToastUtil.getInstance().showToast("请放置出餐空盆!"); | |||||
NewToastUtil.getInstance().showToast("请检测出餐盆是否放置正确!"); | |||||
} | } | ||||
} | } | ||||
Thread.sleep(100); | Thread.sleep(100); | ||||
@@ -293,6 +293,6 @@ public class LoginHActivity extends BaseActivity { | |||||
@Override | @Override | ||||
protected void onResume() { | protected void onResume() { | ||||
super.onResume(); | super.onResume(); | ||||
UpdateAppUtils.updateApp(this,false); | |||||
// UpdateAppUtils.updateApp(this,false); | |||||
} | } | ||||
} | } |
@@ -450,7 +450,7 @@ public class RobotControlDialog extends DialogFragment { | |||||
@Override | @Override | ||||
public void run() { | public void run() { | ||||
try { | try { | ||||
ExecuteTheRecipe.Write_PLC_MainOutdishes(1,data); | |||||
ExecuteTheRecipe.Write_PLC_MainOutdishes(1,data,0); | |||||
WaitProcessUtil.getInstance().dismiss(); | WaitProcessUtil.getInstance().dismiss(); | ||||
}catch (Exception e){ | }catch (Exception e){ | ||||
LogUtils.d("异常信息:"+e.getMessage()); | LogUtils.d("异常信息:"+e.getMessage()); | ||||
@@ -474,7 +474,7 @@ public class RobotControlDialog extends DialogFragment { | |||||
@Override | @Override | ||||
public void run() { | public void run() { | ||||
try { | try { | ||||
ExecuteTheRecipe.Write_PLC_MainOutdishes(2,data); | |||||
ExecuteTheRecipe.Write_PLC_MainOutdishes(2,data,0); | |||||
WaitProcessUtil.getInstance().dismiss(); | WaitProcessUtil.getInstance().dismiss(); | ||||
}catch (Exception e){ | }catch (Exception e){ | ||||
LogUtils.d("异常信息:"+e.getMessage()); | LogUtils.d("异常信息:"+e.getMessage()); | ||||
@@ -450,7 +450,7 @@ public class RobotControlDialog2 extends DialogFragment { | |||||
@Override | @Override | ||||
public void run() { | public void run() { | ||||
try { | try { | ||||
ExecuteTheRecipe.Write_PLC_MainOutdishes(1,data); | |||||
ExecuteTheRecipe.Write_PLC_MainOutdishes(1,data,0); | |||||
WaitProcessUtil.getInstance().dismiss(); | WaitProcessUtil.getInstance().dismiss(); | ||||
}catch (Exception e){ | }catch (Exception e){ | ||||
LogUtils.d("异常信息:"+e.getMessage()); | LogUtils.d("异常信息:"+e.getMessage()); | ||||
@@ -474,7 +474,7 @@ public class RobotControlDialog2 extends DialogFragment { | |||||
@Override | @Override | ||||
public void run() { | public void run() { | ||||
try { | try { | ||||
ExecuteTheRecipe.Write_PLC_MainOutdishes(2,data); | |||||
ExecuteTheRecipe.Write_PLC_MainOutdishes(2,data,0); | |||||
WaitProcessUtil.getInstance().dismiss(); | WaitProcessUtil.getInstance().dismiss(); | ||||
}catch (Exception e){ | }catch (Exception e){ | ||||
LogUtils.d("异常信息:"+e.getMessage()); | LogUtils.d("异常信息:"+e.getMessage()); | ||||
@@ -450,7 +450,7 @@ public class RobotControlDialog3 extends DialogFragment { | |||||
@Override | @Override | ||||
public void run() { | public void run() { | ||||
try { | try { | ||||
ExecuteTheRecipe.Write_PLC_MainOutdishes(1,data); | |||||
ExecuteTheRecipe.Write_PLC_MainOutdishes(1,data,0); | |||||
WaitProcessUtil.getInstance().dismiss(); | WaitProcessUtil.getInstance().dismiss(); | ||||
}catch (Exception e){ | }catch (Exception e){ | ||||
LogUtils.d("异常信息:"+e.getMessage()); | LogUtils.d("异常信息:"+e.getMessage()); | ||||
@@ -475,7 +475,7 @@ public class RobotControlDialog3 extends DialogFragment { | |||||
@Override | @Override | ||||
public void run() { | public void run() { | ||||
try { | try { | ||||
ExecuteTheRecipe.Write_PLC_MainOutdishes(2,data); | |||||
ExecuteTheRecipe.Write_PLC_MainOutdishes(2,data,0); | |||||
WaitProcessUtil.getInstance().dismiss(); | WaitProcessUtil.getInstance().dismiss(); | ||||
}catch (Exception e){ | }catch (Exception e){ | ||||
LogUtils.d("异常信息:"+e.getMessage()); | LogUtils.d("异常信息:"+e.getMessage()); | ||||
@@ -266,9 +266,22 @@ public class HomeOrderFragment extends BaseFragment { | |||||
boolean pan3 = (Boolean) ModbusCenter.ReadPlc(1,"3#空盆库位检测有无"); | boolean pan3 = (Boolean) ModbusCenter.ReadPlc(1,"3#空盆库位检测有无"); | ||||
if(!pan1&&!pan2&&!pan3){ | if(!pan1&&!pan2&&!pan3){ | ||||
NewToastUtil.getInstance().showToastError("请至少放一个出餐空盆!"); | NewToastUtil.getInstance().showToastError("请至少放一个出餐空盆!"); | ||||
AlertDialogUtils.showCancelAndConfirmDialog((AppCompatActivity) getActivity(), R.layout.dialog_order, (layoutView, xCom) -> { | |||||
DialogOrderBinding binding = DialogOrderBinding.bind(layoutView); | |||||
binding.title.setText("出菜盆检测警告"); | |||||
binding.edit.setText("未检测到出菜盆,请至少放一个出餐空盆!或检测盆是否放置正确"); | |||||
binding.cancel.setVisibility(View.GONE); | |||||
binding.submit.setText("确认"); | |||||
binding.submit.setOnClickListener(v->{ | |||||
xCom.dismissX(); | |||||
}); | |||||
binding.cancel.setOnClickListener(v->{ | |||||
xCom.dismissX(); | |||||
}); | |||||
}); | |||||
return; | return; | ||||
} | |||||
} | |||||
String error = checkPosition(mData.get(position)); | String error = checkPosition(mData.get(position)); | ||||
makingOrderDialog( mData.get(position),error.isEmpty()?0:-1,name,error,position); | makingOrderDialog( mData.get(position),error.isEmpty()?0:-1,name,error,position); | ||||
return; | return; | ||||
@@ -405,7 +418,7 @@ public class HomeOrderFragment extends BaseFragment { | |||||
switch (status){ | switch (status){ | ||||
case -1: | case -1: | ||||
if(error.contains("未放置")){ | if(error.contains("未放置")){ | ||||
binding.submit.setText("确认已放盆,开始制作"); | |||||
binding.submit.setText("确认已放料盆,开始制作"); | |||||
}else { | }else { | ||||
binding.submit.setText("确认已补料,开始制作"); | binding.submit.setText("确认已补料,开始制作"); | ||||
} | } | ||||
@@ -35,8 +35,8 @@ task clean(type: Delete) { | |||||
ext { // 统一版本入口 | ext { // 统一版本入口 | ||||
//App版本号 | //App版本号 | ||||
versionCode = 104 | |||||
versionName = "1.0.4" | |||||
versionCode = 105 | |||||
versionName = "1.0.5" | |||||
// 支持Android版本 | // 支持Android版本 | ||||
buildToolsVersion = "33.0.0" | buildToolsVersion = "33.0.0" | ||||