|
@@ -623,6 +623,14 @@ class UserCenter extends Base
|
|
|
$member = Db::name('store_member')->where('phone',$phone)->find();
|
|
|
if (!$member) $this->error('转赠用户不存在');
|
|
|
|
|
|
+ if($member['id'] == $this->uid){
|
|
|
+ $this->error('自己无法转赠给自己');
|
|
|
+ }
|
|
|
+ //防止两两转赠
|
|
|
+ if($info['to_mid'] == $member['id']){
|
|
|
+ $this->error('不可相互转赠');
|
|
|
+ }
|
|
|
+
|
|
|
if (!$info['collectors_hash'] && $info['type'] != 3) $this->error('发放中,无法转赠');
|
|
|
|
|
|
$mem = getMemberInfoHash($this->uid);
|