shop discount test

This commit is contained in:
songliang 2022-11-02 13:16:30 +08:00
parent 023cb76902
commit 71cdfdf48a
3 changed files with 6 additions and 3 deletions

2
third_party/j7 vendored

@ -1 +1 @@
Subproject commit f98d9e8dfb0575f3c42795163bfbaa5c807a5935
Subproject commit 7533a5e7ed287378d33cb1bc3244487d33de7951

@ -1 +1 @@
Subproject commit 571b6c46137597d3bede13989e284130a070bea0
Subproject commit 848e05c01f44622e52996bb04dfb6b344acce1b8

View File

@ -137,7 +137,10 @@ class ShopController extends BaseAuthedController {
$price_array = splitStr1($row['price']);
$discount_array = splitStr1($row['discount']);
$discount_begin = $row['discount_begin'];
$discount_end = $row['discount_end'];
$nowTime = $this->_getNowTime();
$need_price = $price_array[$token_pos];
$discount = $discount_array[$token_pos];