From 342b189c98dc0202c8e4dbab2e02c30c7fe7aa24 Mon Sep 17 00:00:00 2001 From: colly_wyx <wangyixiong_007@163.com> Date: Tue, 24 Apr 2018 16:42:21 +0800 Subject: [PATCH] 修改 --- Yfs/Api/Data.php | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Yfs/Api/Data.php b/Yfs/Api/Data.php index 95f4856..65ed71f 100644 --- a/Yfs/Api/Data.php +++ b/Yfs/Api/Data.php @@ -34,16 +34,18 @@ public function upload(){ $rs = array('code' => 0, 'msg' => ''); $data_service = new Domain_Data(); - $data = json_decode($this->data, true); + //$data = json_decode($this->data, true); //print_r(count($data['data']));die(); - if(json_last_error() == JSON_ERROR_NONE){ + //if(json_last_error() == JSON_ERROR_NONE){ + if(count($this->data) > 0){ $data_service->upload($data); $rs['msg'] = "������������������"; } - else{ - $rs['code'] = 1; - $rs['msg'] = "json������������"; - } + // } + // else{ + // $rs['code'] = 1; + // $rs['msg'] = "json������������"; + // } return $rs; } -- Gitblit v1.8.0