Under the IE browser, the page interface was successfully called, but the background debugging did not enter the corresponding controller.

such as the title: I need to request an interface on my page:

 $.get(url, data, function (res) {
    if (res.Code == 100) {
        //...
    } else {
        //...
    }
})
//-1

later, some people said that it was a cross-domain problem. With the mentality of giving it a try, Baidu made the following changes:

$.ajax({
    type:"get",
    url:url,
    dataType:"jsonp",
    jsonpCallback:"cb",
    success:function(){
        //...
    }
});
//-1

I debugged the breakpoint and found that the interface in the console has been successfully called and the parameters passed are as expected. However, when the colleague in the background debugged the interface at the same time, he found that he did not enter the corresponding controller. An exception was thrown directly, and I didn"t understand what the problem was. Ask the master to advise Orz!

add this interface code in the background:

public JsonResult QueryActivityList(int status,int pageIndex,int pageSize)
        {
            try
            {
                var result = ComssionActivityBLL.Instance.QueryData(UserContext.CurrentStore.ID, status, pageIndex, pageSize);
                return Json(Repost.Return(result), JsonRequestBehavior.AllowGet);
            }
            catch (Exception ex)
            {
                return Json(Repost.SysError(), JsonRequestBehavior.AllowGet);
            }
        }
        catch
Jan.14,2022

I once encountered cross-domain access to other interfaces in ie, but the error syntax was wrong, and later I learned that it was a cross-domain problem. You can try to ask the backend to access cross-domain interfaces, so as to avoid this question


. Later, you ask your colleagues in the background. It seems that all interfaces have some common parameters, but these parameters cannot be obtained by the stored cookie,ie browser. So the interface in the background code above is cacth directly (but I don't see the logical judgment of these common parameters in the code), because I really can't understand the background code, so they say that's the reason. (otherwise, what else can I do? I can only expect the customer not to use the damn ie runingCode. Anyway, I don't have the pot.)

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e51b5b-5a1a1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e51b5b-5a1a1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?