Browse Source

储值卡

gorden 2 days ago
parent
commit
703175e63c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/admin/controller/coupon/CardController.php

+ 2 - 2
app/admin/controller/coupon/CardController.php

@@ -344,12 +344,12 @@ class CardController extends Curd
             if ($allocation == 'CARDID' && !empty($params['card_id'])) {
                 Card::whereIn('card_id', $params['card_id'])->where('join_card_dept_id', '')->update([
                     'join_card_dept_id' => $params['join_card_dept_id'],
-                    'card_assign_datetime' => strval(date('Y-m-d H:i:s'))
+                    'card_assign_datetime' => "'".date('Y-m-d H:i:s')."'"
                 ]);
             } elseif ($allocation == 'ISSUE' && !empty($params['card_issue_id'])) {
                 Card::where('join_card_issue_id', $params['card_issue_id'])->where('join_card_dept_id', '')->update([
                     'join_card_dept_id' => $params['join_card_dept_id'],
-                    'card_assign_datetime' => date('Y-m-d H:i:s')
+                    'card_assign_datetime' => "'".date('Y-m-d H:i:s')."'"
                 ]);
             }