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