1
This commit is contained in:
parent
9e2d8768a8
commit
89c9c8799f
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user