|
@@ -254,8 +254,9 @@ public class WeixinApiController extends ApiController {
|
|
|
*/
|
|
|
public void getShorturl()
|
|
|
{
|
|
|
+ String longUrl = getPara("longUrl");
|
|
|
String str = "{\"action\":\"long2short\"," +
|
|
|
- "\"long_url\":\"http://wap.koudaitong.com/v2/showcase/goods?alias=128wi9shh&spm=h56083&redirect_count=1\"}";
|
|
|
+ "\"long_url\":\""+longUrl +"\"}";
|
|
|
ApiResult apiResult = ShorturlApi.getShorturl(str);
|
|
|
renderText(apiResult.getJson());
|
|
|
}
|