wufeng 2 years ago
parent
commit
a4e7ddf24f
1 changed files with 3 additions and 4 deletions
  1. 3 4
      app/admin/controller/Goodup.php

+ 3 - 4
app/admin/controller/Goodup.php

@@ -1507,7 +1507,7 @@ class Goodup extends Base
                                 'action_id' => $createrid,
                                 'action_name' => $creater,
                                 'uid' => $itemitem['uid'],
-                                'uname' => $itemitem['nickName'],
+                                'uname' => empty($itemitem['nickName']) ? '' : $itemitem['nickName'],
                                 'is_read' => 0,
                                 'addtime' => date('Y-m-d H:i:s'),
                                 'updatetime' => date('Y-m-d H:i:s'),
@@ -2774,7 +2774,7 @@ class Goodup extends Base
                         'order_type' => 'GOL',
                         'order_status' => 8,
                         'uid' => $itemitem['uid'],
-                        'uname' => $itemitem['nickName'],
+                        'uname' => empty($itemitem['nickName']) ? '' : $itemitem['nickName'],
                         'action_id' => $createrid,
                         'action_name' => $creater,
                         'is_read' => 0,
@@ -2788,8 +2788,7 @@ class Goodup extends Base
             Db::name("good_exam")->insertAll($insert_good_exam_data);
 
             //消息表
-            $a = Db::name('order_msg')->fetchSql()->insertAll($insert_order_msg_data);
-            halt($a);
+            Db::name('order_msg')->fetchSql()->insertAll($insert_order_msg_data);
 
             Db::commit();
             return app_show(0, "同一个成本商品编号下的商品下线成功");