zz %!s(int64=6) %!d(string=hai) anos
pai
achega
b2fed8053c
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      app/Http/Controllers/Wap/Book/ChapterController.php

+ 3 - 1
app/Http/Controllers/Wap/Book/ChapterController.php

@@ -557,7 +557,9 @@ class ChapterController extends BaseController
         if ((int)$this->_user_info['balance'] >= $fee) {
             if ($this->bookOrderOrChapterOrder($book_info, $chapter->id, $fee, $chapter->name, $is_remind)) {
                 $this->chapterOrderStats($fee);
-                $this->user->balance -= $fee;
+                if($this->user){
+                    $this->user->balance -= $fee;
+                }
                 return true;
             }
         }