gq il y a 7 ans
Parent
commit
9882bb0d4b

+ 1 - 0
server/app/Console/Commands/DreamDJS.php

xqd
@@ -63,6 +63,7 @@ class DreamDJS extends Command
                     'op'=>'梦想结束',
                     'from_amount'=>$item->get_coin,
                     'to_type'=>'梦想币',
+                    'to_id'=>$dream_user->id,
                 ];
 
                 if (!empty($dream_user)) {

+ 1 - 1
server/app/Http/Controllers/Api/V1/MyController.php

xqd
@@ -1567,7 +1567,7 @@ class MyController extends Controller
     public function accountLog()
     {
         $user = $this->getUser();
-        $data = AccountLog::where('to_id',$user->id)->orderBy('id','desc')->get();
+        $data = AccountLog::where('to_id',$user->id)->orWhere('from_id',$user->id)->orderBy('id','desc')->get();
         return $this->api($data);
     }