|
@@ -347,27 +347,25 @@ var cloudService={
|
|
|
|
|
|
var cid=hash.hashDecode(data.cidKey);
|
|
|
var ssoId=hash.hashDecode(data.ssoId);
|
|
|
-
|
|
|
- console.log(cid);
|
|
|
- console.log(ssoId);
|
|
|
-
|
|
|
+
|
|
|
if(!hash.isNotANumber(cid)||!hash.isNotANumber(ssoId)){
|
|
|
return false;
|
|
|
}
|
|
|
- console.log(cid);
|
|
|
- console.log(ssoId);
|
|
|
+
|
|
|
//修改
|
|
|
var curingDetail=await models.cloud_curing.getCuringBySsoid(ssoId);
|
|
|
if(hash.isExistence(curingDetail)) {
|
|
|
|
|
|
var clientDetail=await models.CLD_client.findById(cid);
|
|
|
if(hash.isExistence(clientDetail)){
|
|
|
+
|
|
|
+ var id=hash.hashDecode(curingDetail['id']);
|
|
|
//更新数量
|
|
|
var values = {
|
|
|
client_id: cid
|
|
|
}
|
|
|
var where={
|
|
|
- where: {id: curingDetail['id']}
|
|
|
+ where: {id: id}
|
|
|
};
|
|
|
await models.cloud_curing.update(values,where);
|
|
|
|