zhangguidong 2 年之前
父节点
当前提交
7791ab698f

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

@@ -277,7 +277,7 @@ class Goods extends Controller
             if (!isset($data['phone']) || $data['phone']==''){
                 $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)){
                 $this->error('手机号不存在');
             }

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

@@ -247,7 +247,7 @@ class Goods1 extends Controller
             if (!isset($data['phone']) || $data['phone']==''){
                 $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)){
                 $this->error('手机号不存在');
             }

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

@@ -250,7 +250,7 @@ class Goods2 extends Controller
             if (!isset($data['phone']) || $data['phone']==''){
                 $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)){
                 $this->error('手机号不存在');
             }