$Content = $data[‘cid’].’,’; // 追加的内容
$tj = Db::name(‘mp_friends’)->where(‘openid’,$data[‘openid’])->find();
$id = $tj[‘id’];
$sql=”UPDATE rh_mp_friends SET Buy=CONCAT(Buy,’$Content’)WHERE ID = $id”; // Buy 追加的字段
db(‘rh_mp_friends’)->query($sql);