|
|
@@ -20,6 +20,10 @@ class PcIssue extends BaseModel
|
|
|
'award',
|
|
|
'winning_array',
|
|
|
'end_timestamp',
|
|
|
+ 'openCode1',
|
|
|
+ 'openCode2',
|
|
|
+ 'openCode3',
|
|
|
+ 'he'
|
|
|
];
|
|
|
|
|
|
public static $STATUS = [
|
|
|
@@ -61,6 +65,12 @@ class PcIssue extends BaseModel
|
|
|
return json_decode($value, true);
|
|
|
}
|
|
|
|
|
|
+ function getOpenCode1Attribute(){
|
|
|
+ $winning_numbers = explode(',', $this->winning_numbers);
|
|
|
+ $winning_numbers = array_map('intval', $winning_numbers);
|
|
|
+ return $winning_numbers[0];
|
|
|
+ }
|
|
|
+
|
|
|
function getAwardAttribute()
|
|
|
{
|
|
|
if (!empty($this->winning_numbers)) {
|