wupengfei hace 3 años
padre
commit
2b665f58cb
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      application/common.php

+ 1 - 1
application/common.php

@@ -99,7 +99,7 @@ function update_user_growth($user_id,$growth,$type,$desc,$data = [])
         'desc'=> $desc,
         'detail'=> json_encode($data),
     ];
-    Db::transaction();
+    Db::startTrans();
     Db::table('member_level_growth')->insert($growth_info);
     Db::table('store_member')->where('id',$user_id)->setInc('growth',$growth);
     $user = Db::table('store_member')->field('level_id,growth')->find($user_id);