|
@@ -579,6 +579,7 @@ class UserCenter extends Base
|
|
|
if ($info['status'] == 2) $this->error('藏品已转赠');
|
|
|
$member = Db::name('store_member')->where('phone', $phone)->where('wallet_address', $wallet_address)->find();
|
|
|
if (!$member) $this->error('转赠用户不存在');
|
|
|
+ if (!$member['id']) $this->error('不能自己转增给自己');
|
|
|
|
|
|
if (!$info['collectors_hash']) $this->error('发放中,无法转赠');
|
|
|
|
|
@@ -607,7 +608,7 @@ class UserCenter extends Base
|
|
|
try {
|
|
|
Db::name('store_order_info')
|
|
|
->where('id', $id)
|
|
|
- ->update(['status' => 2, 'over_time' => date('Y-m-d H:i:s'), 'to_mid' => $member['id']]);
|
|
|
+ ->update(['status' => 2, 'over_time' => date('Y-m-d H:i:s'), 'to_mid' => $member['id'],'is_destruction'=>0]);
|
|
|
$to_date = [
|
|
|
'order_id' => $info['order_id'],
|
|
|
'order_no' => get_order_sn(),
|