lip hace 3 meses
padre
commit
4513f7d6ac
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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');
     }
  
 }