|
@@ -248,6 +248,9 @@ class Goods1 extends Controller
|
|
|
$this->error('输入赠送用户手机号');
|
|
|
}
|
|
|
$mid = Db::name('member')->where('phone',$data['phone'])->value('id');
|
|
|
+ if(empty($mid)){
|
|
|
+ $this->error('手机号不存在');
|
|
|
+ }
|
|
|
$inventory = Db::name($this->table)->where('id',$data['id'])->value('inventory');
|
|
|
|
|
|
$info = Db::name($this->table)->where('id',$data['id'])->find();
|