Browse Source

会员升级

Kirin 7 months ago
parent
commit
28ff8f7e78
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/controller/api/v1/PublicController.php

+ 2 - 2
app/controller/api/v1/PublicController.php

@@ -76,7 +76,7 @@ class PublicController extends BaseController
         $list = UserBill::where('type', 'activity_energy')->select();
         foreach ($list as $v) {
             $mark = explode(',', $v['mark']);
-            if (!UserIntegral::where('uid', $v['uid'])->where('add_time', $v['add_time'])->where('mark', $mark[0])->find()) {
+            if (!UserIntegral::where('uid', $v['uid'])->where('add_time', strtotime($v['add_time']))->where('mark', $mark[0])->find()) {
                 UserIntegral::create([
                     'uid' => $v['uid'],
                     'type' => 1,
@@ -87,7 +87,7 @@ class PublicController extends BaseController
                     'link_id' => $v['link_id'],
                     'mark' => $mark[0],
                     'order_price' => StoreOrder::where('id', $v['link_id'])->value('award_price'),
-                    'add_time' => $v['add_time'],
+                    'add_time' => strtotime($v['add_time']),
                     'status' => 1,
                 ]);
             }