public function dosupply() { dosupply($this->_post("id"), $this->_post("money"), $this->uid, 2); }
public function dosupply() { $user_money = M('member_money')->where("uid = {$this->uid}")->find(); $count = getMoneylimit($this->uid); if ($count + $this->_post("money") > $user_money['back_money'] + $user_money['account_money']) { $msg = array(); $msg['msg'] = '可用余额不足!Sorry!'; echo json_encode($msg); die; } dosupply($this->_post("id"), $this->_post("money"), $this->uid, 1); }
public function docatsupply() { $iscut = true; dosupply($this->_post("id"), $this->_post("money"), $this->uid, 3, $iscut); }