lip 7 jam lalu
induk
melakukan
4513f7d6ac
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      app/Models/LhcOrder.php

+ 1 - 1
app/Models/LhcOrder.php

@@ -12,7 +12,7 @@ class LhcOrder extends BaseModel
 
     public function lottery()
     {
-        return $this->hasOne(LhcLottery::class, 'issue', 'issue')->field('issue,type,open_code, open_time,is_settlement');
+        return $this->belongsTo(LhcLottery::class, 'issue', 'issue')->field('issue,type,open_code, open_time,is_settlement');
     }
  
 }