Commit b5f583bf by 冷斌

fix bug

parent b41aa738
...@@ -146,8 +146,6 @@ class GiftController extends AdminbaseController { ...@@ -146,8 +146,6 @@ class GiftController extends AdminbaseController {
$type=I('type'); $type=I('type');
$swftype=I('swftype'); $swftype=I('swftype');
var_dump($_FILES);
die;
if($type==1 && $swftype==1){ if($type==1 && $swftype==1){
if($_FILES){ if($_FILES){
$savepath=date('Ymd').'/'; $savepath=date('Ymd').'/';
...@@ -162,8 +160,6 @@ class GiftController extends AdminbaseController { ...@@ -162,8 +160,6 @@ class GiftController extends AdminbaseController {
); );
$upload = new \Think\Upload($config);// $upload = new \Think\Upload($config);//
$info=$upload->upload(); $info=$upload->upload();
var_dump($info);
die;
//开始上传 //开始上传
if ($info) { if ($info) {
//上传成功 //上传成功
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment