mapper LogifutureNigeriaAll
This commit is contained in:
1 parent
67334305d8
commit
a68e8f67e9
5 files changed
+518
-396
No files matched your search
@@ -9,11 +9,11 @@ class FindElement
|
||||
{
|
||||
public static function run(&$mapper)
|
||||
{
|
||||
if (isset($mapper['home_id'])) {
|
||||
if (isset($mapper['home_id']) && $mapper['home_id'] > 0) {
|
||||
$mapper['txodds_home_id'] = ElementProvider::where('provider_id', $mapper['provider_id'])
|
||||
->where('provider_element_id', $mapper['home_id'])->value('element_id');
|
||||
}
|
||||
if (! $mapper['txodds_home_id']) {
|
||||
if (! isset($mapper['txodds_home_id'])) {
|
||||
$arr = ExplodeString::grap($mapper['home']);
|
||||
|
||||
$mapper['txodds_home_id'] = Element::where('sport_id', $mapper['sport_id'])
|
||||
@@ -24,11 +24,11 @@ class FindElement
|
||||
})->value('id');
|
||||
}
|
||||
|
||||
if (isset($mapper['away_id'])) {
|
||||
if (isset($mapper['away_id']) && $mapper['away_id'] > 0) {
|
||||
$mapper['txodds_away_id'] = ElementProvider::where('provider_id', $mapper['provider_id'])
|
||||
->where('provider_element_id', $mapper['away_id'])->value('element_id');
|
||||
}
|
||||
if (! $mapper['txodds_away_id']) {
|
||||
if (! isset($mapper['txodds_away_id'])) {
|
||||
$arr = ExplodeString::grap($mapper['away']);
|
||||
|
||||
$mapper['txodds_away_id'] = Element::where('sport_id', $mapper['sport_id'])
|
||||
|
||||
Reference in new issue
Block a user