Browse Source

商家端编辑锁问题

zhangxiaobin 1 year ago
parent
commit
034fd076cc
1 changed files with 1 additions and 1 deletions
  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('不存在的套餐');
         }