zhangguidong 2 سال پیش
والد
کامیت
7791ab698f
3فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 1 1
      application/store/controller/Goods.php
  2. 1 1
      application/store/controller/Goods1.php
  3. 1 1
      application/store/controller/Goods2.php

+ 1 - 1
application/store/controller/Goods.php

@@ -277,7 +277,7 @@ class Goods extends Controller
             if (!isset($data['phone']) || $data['phone']==''){
             if (!isset($data['phone']) || $data['phone']==''){
                 $this->error('输入赠送用户手机号');
                 $this->error('输入赠送用户手机号');
             }
             }
-            $mid = Db::name('member')->where('phone',$data['phone'])->value('id');
+            $mid = Db::name('store_member')->where('phone',$data['phone'])->value('id');
             if(empty($mid)){
             if(empty($mid)){
                 $this->error('手机号不存在');
                 $this->error('手机号不存在');
             }
             }

+ 1 - 1
application/store/controller/Goods1.php

@@ -247,7 +247,7 @@ class Goods1 extends Controller
             if (!isset($data['phone']) || $data['phone']==''){
             if (!isset($data['phone']) || $data['phone']==''){
                 $this->error('输入赠送用户手机号');
                 $this->error('输入赠送用户手机号');
             }
             }
-            $mid = Db::name('member')->where('phone',$data['phone'])->value('id');
+            $mid = Db::name('store_member')->where('phone',$data['phone'])->value('id');
             if(empty($mid)){
             if(empty($mid)){
                 $this->error('手机号不存在');
                 $this->error('手机号不存在');
             }
             }

+ 1 - 1
application/store/controller/Goods2.php

@@ -250,7 +250,7 @@ class Goods2 extends Controller
             if (!isset($data['phone']) || $data['phone']==''){
             if (!isset($data['phone']) || $data['phone']==''){
                 $this->error('输入赠送用户手机号');
                 $this->error('输入赠送用户手机号');
             }
             }
-            $mid = Db::name('member')->where('phone',$data['phone'])->value('id');
+            $mid = Db::name('store_member')->where('phone',$data['phone'])->value('id');
             if(empty($mid)){
             if(empty($mid)){
                 $this->error('手机号不存在');
                 $this->error('手机号不存在');
             }
             }