mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-12-01 03:18:33 +08:00
插件调用优化
This commit is contained in:
parent
ca4f2dddab
commit
d430ec929b
@ -101,7 +101,7 @@ class Plugins extends Common
|
||||
// ajax 返回的都是数组、使用统一api返回处理
|
||||
if(IS_AJAX)
|
||||
{
|
||||
return ApiService::ApiDataReturn($ret['data']);
|
||||
return ApiService::ApiDataReturn(($ret['code'] == 0) ? $ret['data'] : $ret);
|
||||
}
|
||||
|
||||
if($ret['code'] == 0)
|
||||
|
@ -89,7 +89,7 @@ class Plugins extends Common
|
||||
// ajax 返回的都是数组、使用统一api返回处理
|
||||
if(IS_AJAX)
|
||||
{
|
||||
return ApiService::ApiDataReturn($ret['data']);
|
||||
return ApiService::ApiDataReturn(($ret['code'] == 0) ? $ret['data'] : $ret);
|
||||
}
|
||||
|
||||
if($ret['code'] == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user