From 066fffc3e2d8107df55dd41d4d50dbe5b69886b1 Mon Sep 17 00:00:00 2001 From: colly_wyx <wangyixiong_007@163.com> Date: Sat, 28 Apr 2018 10:22:40 +0800 Subject: [PATCH] 解决上传原始数据接口bug --- Yfs/Api/Data.php | 18 +++++------------- 1 files changed, 5 insertions(+), 13 deletions(-) diff --git a/Yfs/Api/Data.php b/Yfs/Api/Data.php index a6f7ffd..cc47faf 100644 --- a/Yfs/Api/Data.php +++ b/Yfs/Api/Data.php @@ -77,19 +77,11 @@ public function originalUpload(){ $rs = array('code' => 0, 'msg' => ''); $data_service = new Domain_Data(); - - if(!empty($this->data)){ - $data = $this->data; - } - else{ - $data = $this->data_1; - } - - if(count($data) > 0){ - - $data_service->originalUpload($data); - $rs['msg'] = "������������������������"; - } + if($data_service->originalUpload($this)) + $rs['msg'] = "������������������������"; + else + $rs['msg'] = "������������������������"; + return $rs; } /** -- Gitblit v1.8.0