|
@@ -702,6 +702,8 @@ class UserCenter extends Common
|
|
|
$res = $useranchorModel->insertGetId($data);
|
|
|
if($res) {
|
|
|
\app\common\model\User::update(["is_anchor"=>1],["id"=>$this->auth->id]);
|
|
|
+ $vbot = new \addons\vbot\Vbot();
|
|
|
+ $vbot->vbotSendMsg('Anchor_Application_Notice', [], []);
|
|
|
$this->success("申请发送成功!");
|
|
|
} else {
|
|
|
$this->error("网络错误,请稍后重试");
|
|
@@ -1389,6 +1391,14 @@ class UserCenter extends Common
|
|
|
throw new Exception('提现失败');
|
|
|
}
|
|
|
Db::commit();
|
|
|
+ $vbot = new \addons\vbot\Vbot();
|
|
|
+ $vbot->vbotSendMsg('Withdrawal_Application_Notice', [], [
|
|
|
+ 'name' => $name,
|
|
|
+ 'account' => $account,
|
|
|
+ 'real_money' => $realMoney,
|
|
|
+ 'type' => $typeStr,
|
|
|
+ 'handingfee' => $platformMoney
|
|
|
+ ]);
|
|
|
$this->success('操作成功待审核');
|
|
|
} catch (Exception $e) {
|
|
|
Db::rollback();
|