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="正在启动,请稍候";
|
$("#result")[0].innerHTML="正在启动,请稍候";
|
||||||
var request = {};
|
var request = {};
|
||||||
request.action = "startContractByYPK";
|
request.action = "startContractByYPK";
|
||||||
if (createParam !='') {
|
if (createParam.value !='') {
|
||||||
request.createParam = createParam.value;
|
request.createParam = createParam.value;
|
||||||
$("#createParam").css("color","");
|
$("#createParam").css("color","");
|
||||||
if (autoConvertStr.value=='on') {
|
if (autoConvertStr.value=='on') {
|
||||||
@ -144,6 +144,8 @@ var startContractAtSlave = function() {
|
|||||||
}catch(e){
|
}catch(e){
|
||||||
console.log(e);
|
console.log(e);
|
||||||
$("#createParam").css("color","red");
|
$("#createParam").css("color","red");
|
||||||
|
alert("Create Param not JSON Format");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
}
|
}
|
||||||
@ -206,6 +208,22 @@ function startContractUnits(place) {
|
|||||||
}
|
}
|
||||||
request.isPrivate = global.ypkIsPrivate;
|
request.isPrivate = global.ypkIsPrivate;
|
||||||
request.sponsorPeerID = global.peerID; //peerID of the node
|
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);
|
console.log(request);
|
||||||
global.wssocket.send(JSON.stringify(request));
|
global.wssocket.send(JSON.stringify(request));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user