...
|
...
|
@@ -88,6 +88,8 @@ class Coupons extends Backend |
|
|
$params = $this->request->post();
|
|
|
if ($params) {
|
|
|
$params = json_decode($params['data'], true);
|
|
|
$params['gettime'] = date('Y-m-d H:i:s') . ' - ' .date('Y-m-d H:i:s',strtotime('+30year'));
|
|
|
$params['usetime'] = date('Y-m-d H:i:s') . ' - ' .date('Y-m-d H:i:s',strtotime('+30year'));
|
|
|
$result = false;
|
|
|
Db::startTrans();
|
|
|
try {
|
...
|
...
|
@@ -137,6 +139,8 @@ class Coupons extends Backend |
|
|
$params = $this->request->post();
|
|
|
if ($params) {
|
|
|
$params = json_decode($params['data'], true);
|
|
|
$params['gettime'] = date('Y-m-d H:i:s') . ' - ' .date('Y-m-d H:i:s',strtotime('+30year'));
|
|
|
$params['usetime'] = date('Y-m-d H:i:s') . ' - ' .date('Y-m-d H:i:s',strtotime('+30year'));
|
|
|
$result = false;
|
|
|
Db::startTrans();
|
|
|
try {
|
...
|
...
|
|