Bladeren bron

储值卡

gorden 1 dag geleden
bovenliggende
commit
0cd38a4b80
1 gewijzigde bestanden met toevoegingen van 4 en 4 verwijderingen
  1. 4 4
      app/admin/controller/coupon/CardController.php

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

@@ -342,14 +342,14 @@ class CardController extends Curd
             $allocation = $params['allocation'];
             // 1.按卡号分配
             if ($allocation == 'CARDID' && !empty($params['card_id'])) {
-                Card::whereIn('card_id', $params['card_id'])->where('join_card_dept_id', '')->update([
+                Card::whereIn('card_id', $params['card_id'])->where('join_card_dept_id', 0)->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')
                 ]);
             } elseif ($allocation == 'ISSUE' && !empty($params['card_issue_id'])) {
-                Card::where('join_card_issue_id', $params['card_issue_id'])->where('join_card_dept_id', '')->update([
+                Card::where('join_card_issue_id', $params['card_issue_id'])->where('join_card_dept_id', 0)->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')
                 ]);
             }