Jonlin il y a 6 ans
Parent
commit
a5236c0dd5

+ 0 - 4
application/admin/view/messages/detail.html

@@ -167,15 +167,11 @@
 <script>
     $("img").click(function (){
         $src = $(this)[0].src;
-        //console.log($(this)[0].src);
-        //console.log(123);
         $("#large_image").attr('src',$src);
     })
     function checkImg() {
         $("#all_blank").css({"z-index": "19991015", "background-color": "rgb(0, 0, 0)", "opacity": "0.3", "display": "block"});
         $("#check_img").css({"z-index": "19991016", "top": "40px", "left": "170px", "width": "70vw", "display": "block"});
-//        $("#large_image").attr('src',$src);
-//        $("#imgs").html('<div>123</div>');
     }
     function closeCheckImg() {
         $("#all_blank").css({"display": "none"});

+ 12 - 4
application/index/controller/User.php

@@ -123,6 +123,7 @@ class User extends Controller
 
             $param = [
                 'account_id' => $account_id,
+                'nick_name' => $nick_name,
                 'content' => $content,
                 'account_ip' => $account_ip,
                 'browse' => $browse,
@@ -132,18 +133,25 @@ class User extends Controller
                 'add_time' => time()
             ];
 
+            $account = db('accounts')->where('id',$account_id)->find();
+
             $info = array();
-            if(!empty($nick_name)){
-                $param['nick_name'] = $nick_name;
-                $info['nick_name'] = $nick_name;
-            }
+
             if(!empty($email)){
                 $param['email'] = $email;
                 $info['account_email'] = $email;
+            }else{
+                if(!empty($account)){
+                    $param['email'] = $account['account_email'];
+                }
             }
             if(!empty($phone)){
                 $param['phone'] = $phone;
                 $info['account_phone'] = $phone;
+            }else{
+                if(!empty($account)){
+                    $param['phone'] = $account['account_phone'];
+                }
             }
 
             try{