@@ -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);