|
|
@@ -358,7 +358,11 @@ class User extends Frontend
|
|
|
}
|
|
|
|
|
|
// 查询模版表
|
|
|
- $products = Db::name('product_template')->where($where)->order('id desc')->where('mod_rq', null)->select();
|
|
|
+ $products = Db::name('product_template')
|
|
|
+ ->where($where)->order('id desc')
|
|
|
+ ->where('mod_rq', null)
|
|
|
+ ->where('toexamine', '审核通过')
|
|
|
+ ->select();
|
|
|
|
|
|
// // 检查并修正图片URL
|
|
|
// foreach ($products as &$val) {
|
|
|
@@ -505,7 +509,7 @@ class User extends Frontend
|
|
|
|
|
|
// 检查权限
|
|
|
$product = Db::name('product_template')->where('id', $params['id'])->where('user_id', $user['id'])->find();
|
|
|
-
|
|
|
+
|
|
|
if (!$product) {
|
|
|
return json(['code' => 1, 'msg' => '无权限操作此作品']);
|
|
|
}
|