作者 lyh

gx

... ... @@ -93,15 +93,15 @@ class BaseLogic extends Logic
}
/**
* @name :上传图片
* @name :上传图片返回hash
* @return void
* @author :liyuhang
* @method
*/
public function upload(){
$image = new ImageController();
$hash = $image->upload();
return $hash;
$data = $image->upload();
return $data['data']['image'];
}
/**
... ...
... ... @@ -8,5 +8,5 @@ class File extends Base
{
protected $table = 'gl_file';
//连接数据库
protected $connection = 'custom_mysql';
// protected $connection = 'custom_mysql';
}
... ...
... ... @@ -9,5 +9,5 @@ class Image extends Base
protected $table = 'gl_image';
//连接数据库
protected $connection = 'custom_mysql';
// protected $connection = 'custom_mysql';
}
... ...