stanley-king 4 vuotta sitten
vanhempi
commit
10994337b4
3 muutettua tiedostoa jossa 11 lisäystä ja 9 poistoa
  1. 1 0
      admin/control/cache.php
  2. 9 9
      data/config/lingzh/refill.ini.php
  3. 1 0
      data/model/merchant.model.php

+ 1 - 0
admin/control/cache.php

@@ -113,6 +113,7 @@ class cacheControl extends SystemControl
             $this->mPublisher->modify_activity_optional_goods();
             $this->mPublisher->modify_activity_goods_sampler();
             $this->mPublisher->modify_activity_bargain_goods();
+            $this->mPublisher->modify_refill_channel();
         }
         else
         {

+ 9 - 9
data/config/lingzh/refill.ini.php

@@ -16,18 +16,18 @@ $config['refill_specs'] = [
 $oil_providers = [];
 $config['oil_providers'] = $oil_providers;
 
-define('ZERO_GOODS_ID', 6386);
+define('ZERO_GOODS_ID', 8);
 
-$baidu_phone = ['name' => 'baizeyd', 'store_id' => 8,
+$baidu_phone = ['name' => 'baizeyd', 'store_id' => 32,
     'amount' => [
-        10 => [['goods_id' => 6386, 'price' => 9.51, 'quality' => 1, 'card_type' => 'chinaunicom,chinatelecom'],
-            ['goods_id' => 6386, 'price' => 9.61, 'quality' => 1, 'card_type' => 'chinamobile'],
-            ['goods_id' => 6386, 'price' => 9.81, 'quality' => 2, 'card_type' => 'chinamobile']],
+        10 => [['goods_id' => 1, 'price' => 9.51, 'quality' => 1, 'card_type' => 'chinaunicom,chinatelecom'],
+               ['goods_id' => 1, 'price' => 9.61, 'quality' => 1, 'card_type' => 'chinamobile'],
+               ['goods_id' => 1, 'price' => 9.81, 'quality' => 2, 'card_type' => 'chinamobile']],
 
-        20 => [['goods_id' => 6387, 'price' => 19.02, 'card_type' => 'chinaunicom,chinatelecom']],
-        30 => [['goods_id' => 6388, 'price' => 28.53, 'card_type' => 'chinamobile,chinatelecom']],
-        50 => [['goods_id' => 6389, 'price' => 47.55, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']],
-        100 => [['goods_id' => 6390, 'price' => 95.1, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']]
+        20 => [['goods_id' => 2, 'price' => 19.02, 'card_type' => 'chinaunicom,chinatelecom']],
+        30 => [['goods_id' => 3, 'price' => 28.53, 'card_type' => 'chinamobile,chinatelecom']],
+        50 => [['goods_id' => 4, 'price' => 47.55, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']],
+        100 => [['goods_id' => 5,'price' => 95.1, 'card_type' => 'chinamobile,chinaunicom,chinatelecom']]
     ],
     'official_sn' => true, 'refill_type' => 'api'];
 

+ 1 - 0
data/model/merchant.model.php

@@ -28,6 +28,7 @@ class merchantModel extends Model
 
     public function getPrices($mchid, $amount,$quality)
     {
+        //todo add quality
         return $this->table('merchant_price')->where(['mchid' => $mchid, 'spec' => $amount])->select();
     }