|
@@ -976,65 +976,7 @@ class UserLogic extends BaseLogic {
|
|
|
|
|
|
return $result;
|
|
|
|
|
|
- /**
|
|
|
- * --------------------
|
|
|
|
|
|
- //审批成功后 才记录一下相关信息
|
|
|
-
|
|
|
- $this->credit3logdao->ip = $this->questiondao->ip;
|
|
|
- $this->credit3logdao->amount = $price;
|
|
|
- $this->credit3logdao->username = $data ['author'];
|
|
|
- $this->credit3logdao->uid = $data ['authorid'];
|
|
|
- $this->credit3logdao->time = $this->questiondao->time;
|
|
|
-
|
|
|
- //扣除金额后才可以添加问题
|
|
|
- if ($data ['price'] > 0) {
|
|
|
- $is = $this->set_credit3 ( - $data ['price'], $data ['authorid'], RICH_ACTION_OFFER, SSO_UID );
|
|
|
- if ($is == 0)
|
|
|
- return 0;
|
|
|
- }
|
|
|
-
|
|
|
- //推广手段
|
|
|
- if($data['price']==0){
|
|
|
- $fundstr=file_get_contents(SITE_PATH . '/protected/config/fund.conf.php') ;
|
|
|
- if($fundstr){
|
|
|
- //获取基金
|
|
|
- Doo::loadModel ( 'FundDao' );
|
|
|
- $funddao = new FundDao ();
|
|
|
- $fund=$funddao->get_fund_by_amount();
|
|
|
- if(!empty($fund)){
|
|
|
- $funddao->set_fund_amount_spread("-1",$fund['id']);
|
|
|
- $this->questiondao->price=1;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- //发送邮件
|
|
|
- if ($data ['price'] > 0) {
|
|
|
-
|
|
|
- $this->send_email ( $data ['authorid'], "PAY_FORMONEY", $result, 0 );
|
|
|
- }
|
|
|
-
|
|
|
- //是否需要优化
|
|
|
- if ($result) {
|
|
|
- //扣除财富值--财富值记录
|
|
|
- if ($data ['price'] > 0) {
|
|
|
- $this->credit3logdao->qid = $result;
|
|
|
-
|
|
|
- $action = $this->credit3logdao->set_ACTION_OFFER_QUESTION ();
|
|
|
-
|
|
|
- $this->credit3logdao->add_credit3_log ( $data ['authorid'], $data ['author'], $result, $action, - $price, $this->questiondao->ip );
|
|
|
- }
|
|
|
-
|
|
|
- //更新今天发布数--需要修改每时间段的更新次数
|
|
|
- $this->authissuedao->set_authissue_totals ( $data ['authorid'] );
|
|
|
-
|
|
|
- //添加积分值
|
|
|
- $this->set_credit1 ( 'add', $data ['authorid'], CREDIT_POINT_ADD, CREDIT_ACTION_ADD );
|
|
|
- }
|
|
|
-
|
|
|
- return $result;
|
|
|
- */
|
|
|
}
|
|
|
|
|
|
/**
|