浏览代码

商家端编辑锁问题

zhangxiaobin 1 年之前
父节点
当前提交
034fd076cc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      application/api/controller/company/Package.php

+ 1 - 1
application/api/controller/company/Package.php

@@ -89,7 +89,7 @@ class Package extends Apic
         }
         $id = input('id','');
 
-        $check = Db::name('package')->where('id',$id)->where('company_id',$this->auth->company_id)->lock(ture)->find();
+        $check = Db::name('package')->where('id',$id)->where('company_id',$this->auth->company_id)->lock(true)->find();
         if(empty($check)){
             $this->error('不存在的套餐');
         }