Browse Source

没传封面给默认封面

shish 4 years ago
parent
commit
1e9ce44d1f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app-hd/controllers/WorkController.php

+ 1 - 0
app-hd/controllers/WorkController.php

@@ -66,6 +66,7 @@ class WorkController extends BaseController
         $post['staffId'] = $this->shopAdminId;
         $post['staffName'] = $this->shopAdmin->name;
         $post['name'] = isset($post['name']) && !empty($post['name']) ? $post['name'] : '花束';
+        $post['cover'] = isset($post['cover']) && !empty($post['cover']) ? $post['cover'] : 'default-img.png';
         $connection = Yii::$app->db;
         $transaction = $connection->beginTransaction();
         try {