Commit f46dcf8a by 冷斌

update

parent debfac44
...@@ -124,6 +124,11 @@ class CustomerController extends AdminbaseController{ ...@@ -124,6 +124,11 @@ class CustomerController extends AdminbaseController{
} }
$v['total_votes']=$total_votes; $v['total_votes']=$total_votes;
$results = DI()->notorm->users_coinrecord
->where("uid = {$v['id']} and type='expend' and action in ('sendgift','sendbarrage')")
->sum('totalcoin');
$v['consumption'] = (int)$results;
$proxy = M('users_proxy') $proxy = M('users_proxy')
->field('path') ->field('path')
->where(['uid'=>$v['id']]) ->where(['uid'=>$v['id']])
......
...@@ -52,7 +52,7 @@ class PayNotifyCallBack extends WxPayNotify ...@@ -52,7 +52,7 @@ class PayNotifyCallBack extends WxPayNotify
}else{ }else{
$link = mysql_connect("mysql","zhibo","Rni43v7RpkWUP9FD"); $link = mysql_connect("mysql","zhibo","Rni43v7RpkWUP9FD");
if($link){ if($link){
mysql_select_db("",$link); mysql_select_db("zhibo",$link);
mysql_query("set names utf8"); mysql_query("set names utf8");
$result = mysql_query("select * from cmf_users_charge where orderno='{$out_trade_no}' and status='0' and type='2'"); $result = mysql_query("select * from cmf_users_charge where orderno='{$out_trade_no}' and status='0' and type='2'");
Log::DEBUG("select * from cmf_users_charge where orderno='{$out_trade_no}' and status='0' and type='2'"); Log::DEBUG("select * from cmf_users_charge where orderno='{$out_trade_no}' and status='0' and type='2'");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment