@@ -1078,7 +1078,7 @@ class Sell
} else {
$zhe = $card_info['price']/$card_info['value'];
}
- $price = round($card['cash']*$zhe);
+ $price = round($card['cash']*$zhe, 2);
$order_data['type'] = 1;
$order_data['type_id'] = $order_data['shop_id'];
$order_data['source_type'] = 4;
@@ -872,5 +872,18 @@ return array
'type' => 'all',
'col' => 'id,sell',
),
+
+ 'getDataByArea' => array
+ (
+ # 匹配的正则或函数 选填项
+ 'option' => array
+ 'area' => array('yes', 'like'),
+ 'state' => 1,
+ ),
+ 'order' => array('id' => 'desc'),
+ 'type' => 'all',
+ 'col' => '*',
);
@@ -771,8 +771,7 @@ class Import
echo "\r\n";
*/
-
- $data = $this->db->fetchAll('select * from `churen_agent_member` where left(concat(`area`,","), 14)=in(150000,150100,) and `state` = "1"');
+ $data = Dever::db('agent/member')->getDataByArea(array('area' => '150000,150100'));
if (!$data) {
return false;