Skip to content

Instantly share code, notes, and snippets.

@chankanzu
Created October 29, 2019 08:10
Show Gist options
  • Save chankanzu/2d9556c99d411b12b0b51fc987080ce3 to your computer and use it in GitHub Desktop.
Save chankanzu/2d9556c99d411b12b0b51fc987080ce3 to your computer and use it in GitHub Desktop.
var obj = JSON.parse($response.body);
var url = $request.url;
var cons = "getUserInfo";
if(url.indexOf(cons) != -1)
{
obj["status"]= "success";
obj["data"]["id"]= 248997;
obj["data"]["description"]= "";
obj["data"]["config_item"]= "{\"avatar_path_40\":\"boy_8.png\"}";
}
$done({body: JSON.stringify(obj)});
// Descriptions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment