Skip to content

Instantly share code, notes, and snippets.

@chankanzu
Last active October 29, 2019 08:25
Show Gist options
  • Save chankanzu/29dd87bc4f0b5bf206845d08745d72cf to your computer and use it in GitHub Desktop.
Save chankanzu/29dd87bc4f0b5bf206845d08745d72cf 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["status"]["message"]= "success",
obj["status"]["code"]= 200,
obj["data"]["is_vn"]= true,
obj["data"]["purchased"]["pay_inapp"]= true,
obj["data"]["purchased"]["time_expire"]= 0,
obj["data"]["purchased"]["product_list"]= ["com.earlystart.alllanguage"],
obj["data"]["purchased"]["is_active"]= true,
obj["data"]["purchased"]["is_free"]= false,
obj["userInfo"]["email"]="chankanzu01@gmail.com",
obj["userInfo"]["users_id"]=1189320,
obj["userInfo"]["max_profile"]=100,
}
$done({body: JSON.stringify(obj)});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment