1
This commit is contained in:
parent
60fcfd4867
commit
829a3a1d10
@ -32,21 +32,18 @@ class AddReward {
|
||||
return $it;
|
||||
}
|
||||
|
||||
protected function getShop($shop_id)
|
||||
protected function getDrop($drop_id)
|
||||
{
|
||||
$g_conf_shop_cluster = require('../res/shop@shop.php');
|
||||
$shop_conf = getShopConfig($g_conf_shop_cluster, $shop_id);
|
||||
$s = array(
|
||||
'shop_id' => $shop_conf['shop_id'],
|
||||
'item_id' => $shop_conf['item_id'],
|
||||
'num' => $shop_conf['num'],
|
||||
'item_weight' => $shop_conf['item_weight'],
|
||||
'discount' => $shop_conf['discount'],
|
||||
'discount_weight' => $shop_conf['discount_weight'],
|
||||
'tip' => $shop_conf['tip'],
|
||||
'type' => $shop_conf['shop_type']
|
||||
$g_conf_drop_cluster = require('../res/drop@drop.php');
|
||||
$drop_conf = getDropConfig($g_conf_drop_cluster, $drop_id);
|
||||
$d = array(
|
||||
'drop_id' => $drop_conf['drop_id'],
|
||||
'item_id' => $drop_conf['item_id'],
|
||||
'num' => $drop_conf['num'],
|
||||
'weight' => $drop_conf['weight'],
|
||||
'type' => $drop_conf['type']
|
||||
);
|
||||
return $s;
|
||||
return $d;
|
||||
}
|
||||
|
||||
protected function getExplode($string)
|
||||
|
Loading…
x
Reference in New Issue
Block a user