front: support startMulitipoint with args
fix: ContractClient missing arguments error update: @Router arguments format fix: ContractStatusRecorder null exception
This commit is contained in:
parent
a85bd4bb14
commit
6f6be77dfe
@ -134,7 +134,7 @@ var startContractAtSlave = function() {
|
||||
$("#result")[0].innerHTML="正在启动,请稍候";
|
||||
var request = {};
|
||||
request.action = "startContractByYPK";
|
||||
if (createParam !='') {
|
||||
if (createParam.value !='') {
|
||||
request.createParam = createParam.value;
|
||||
$("#createParam").css("color","");
|
||||
if (autoConvertStr.value=='on') {
|
||||
@ -144,6 +144,8 @@ var startContractAtSlave = function() {
|
||||
}catch(e){
|
||||
console.log(e);
|
||||
$("#createParam").css("color","red");
|
||||
alert("Create Param not JSON Format");
|
||||
return;
|
||||
}
|
||||
}else{
|
||||
}
|
||||
@ -206,6 +208,22 @@ function startContractUnits(place) {
|
||||
}
|
||||
request.isPrivate = global.ypkIsPrivate;
|
||||
request.sponsorPeerID = global.peerID; //peerID of the node
|
||||
if (createParam.value !='') {
|
||||
request.createParam = createParam.value;
|
||||
$("#createParam").css("color","");
|
||||
if (autoConvertStr.value=='on') {
|
||||
try{
|
||||
request.createParam = JSON.parse(request.createParam);
|
||||
$("#createParam").css("color","");
|
||||
}catch(e){
|
||||
console.log(e);
|
||||
$("#createParam").css("color","red");
|
||||
alert("Create Param not JSON Format");
|
||||
return;
|
||||
}
|
||||
}else{
|
||||
}
|
||||
}
|
||||
console.log(request);
|
||||
global.wssocket.send(JSON.stringify(request));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user