|
...
|
...
|
@@ -85,7 +85,7 @@ class BlogLogic extends BaseLogic |
|
|
|
$this->param['operator_id'] = $this->uid;
|
|
|
|
DB::beginTransaction();
|
|
|
|
try {
|
|
|
|
if(isset($this->param['image'])){
|
|
|
|
if(isset($this->param['image']) && is_file($this->param['image'])){
|
|
|
|
//查看当前用户是否已有头像
|
|
|
|
$info = $this->model->read(['id'=>$this->param['id']],['id','hash']);
|
|
|
|
if($info !== false && !empty($info['hash'])){
|
...
|
...
|
|