作者 王智

xiugai

@@ -267,7 +267,8 @@ class Config extends Api @@ -267,7 +267,8 @@ class Config extends Api
267 // $this->error('只能送出一份礼物'); 267 // $this->error('只能送出一份礼物');
268 } 268 }
269 $data = [ 269 $data = [
270 - 'gift_id' => $Params['gift_id'] 270 + 'gift_id' => $Params['gift_id'],
  271 + 'createtime' => time()
271 ]; 272 ];
272 // $GiftId = Db::name('message')->where(['user_id' => $UserId, 'ob_id' => $Params['ob_id'], 'type' => 2])->order('id desc')->value('id'); 273 // $GiftId = Db::name('message')->where(['user_id' => $UserId, 'ob_id' => $Params['ob_id'], 'type' => 2])->order('id desc')->value('id');
273 $Res = Db::name('message')->where('id', $IsHave['id'])->update($data); 274 $Res = Db::name('message')->where('id', $IsHave['id'])->update($data);