Kirin hace 2 años
padre
commit
4e8e3abb9c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/services/user/UserAwardIntegralServices.php

+ 1 - 1
app/services/user/UserAwardIntegralServices.php

@@ -231,7 +231,7 @@ class UserAwardIntegralServices extends BaseServices
         if ($old) {
         if ($old) {
             UserIntegral::where('id', $old['id'])->delete();
             UserIntegral::where('id', $old['id'])->delete();
         }
         }
-        return $this->dao->save([
+        return UserIntegral::create([
             'uid' => $uid,
             'uid' => $uid,
             'type' => $type == 1 ? 1 : 0,
             'type' => $type == 1 ? 1 : 0,
             'num' => $inc_integral,
             'num' => $inc_integral,