|
|
@@ -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 {
|