|
@@ -18,10 +18,11 @@
|
|
|
{
|
|
|
var sign_url = window.location.href;
|
|
|
sign_url = encodeURIComponent(sign_url);
|
|
|
+ var host = window.location.protocol + '//' + window.location.host;
|
|
|
$.ajax({
|
|
|
type: "get",
|
|
|
async: false,
|
|
|
- url: "http://"+ window.location.host +"/mobile/index.php?act=mshop&op=signurl&client_type=ajax&sign_url=" + sign_url,
|
|
|
+ url: host +"/mobile/index.php?act=mshop&op=signurl&client_type=ajax&sign_url=" + sign_url,
|
|
|
dataType: "jsonp",
|
|
|
jsonp: "callback",//传递给请求处理程序或页面的,用以获得jsonp回调函数名的参数名(一般默认为:callback)
|
|
|
success: function (json) {
|