diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index 0aa5ee39..834ba6dd 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -442,31 +442,4 @@ class ShopController extends BaseAuthedController { } } - private function addFreeBuyRecord($goods) - { - $conn = myself()->_getMysql(''); - $account = myself()->_getAccountId(); - - switch ($goods['free_type']) { - case 1: { - $dayTime = myself()->_getNowTime(); - SqlHelper::insert( - $conn, - 't_shop_free_record', - array( - 'account_id' => $account, - 'shop_id' => $goods['shop_id'], - 'id' => $goods['id'], - 'goods_id' => $goods['goods_id'], - 'goods_num' => $goods['goods_num'], - 'free_type' => $goods['free_type'], - 'free_num' => $goods['free_num'], - 'createtime' => $dayTime, - ) - ); - } - break; - } - } - }