dever 6 years ago
parent
commit
bcc409bfc0
2 changed files with 3 additions and 3 deletions
  1. 1 1
      main/src/Journal.php
  2. 2 2
      service/src/Buy.php

+ 1 - 1
main/src/Journal.php

@@ -597,7 +597,7 @@ class Journal extends Core
         if (!$this->data['uid']) {
         if (!$this->data['uid']) {
             Dever::alert('错误的用户信息');
             Dever::alert('错误的用户信息');
         }
         }
-        $code = Dever::input('code');
+        $code = trim(Dever::input('code'));
 
 
         if ($code) {
         if ($code) {
 
 

+ 2 - 2
service/src/Buy.php

@@ -68,8 +68,8 @@ class Buy extends Base
 
 
                 $data[$k]['pic_gd'] .= '?imageView2/2/w/375';
                 $data[$k]['pic_gd'] .= '?imageView2/2/w/375';
 
 
-                $data[$k]['code_pic'] = '';
-                //$data[$k]['code_pic'] = $this->create_code($info['id']);
+                //$data[$k]['code_pic'] = '';
+                $data[$k]['code_pic'] = $this->create_code($info['id']);
             }
             }
         }
         }