Last active
October 29, 2019 08:25
-
-
Save chankanzu/29dd87bc4f0b5bf206845d08745d72cf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"]="[email protected]", | |
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