作者 刘朕
1 个管道 的构建 通过 耗费 7 秒

支付回调调试

... ... @@ -225,6 +225,8 @@ class PayController extends HomeBaseController
$money += $val['commission']*$val['number'];
$money_in = $val['commission']*$val['number'];
$money_income_teacher['create_time'] = time();
$money_income_teacher['create_time_detail'] = msectime();
$money_income_teacher['indent_goods_id'] = $val['id'];
$money_income_teacher['money'] = $money_in;
$money_income_teacher['type'] = 2;
$money_income_teacher['book_name'] = $val['book_name'];
... ... @@ -253,6 +255,7 @@ class PayController extends HomeBaseController
Db::name('my_user') -> where('uid',$order['salesman_uid']) -> setInc('balance',$balance_salesman);
//添加业务员的收入记录
$money_income_salesman_indent['create_time'] = time();
$money_income_salesman_indent['create_time_detail'] = msectime();
$money_income_salesman_indent['uid'] = $order['salesman_uid'];
$money_income_salesman_indent['money'] = $balance_salesman;
$money_income_salesman_indent['type'] = 2;
... ...
... ... @@ -1868,3 +1868,10 @@ function createQRcode($savePath, $qrData = 'PHP QR Code :)', $qrLevel = 'L', $qr
else
return FALSE;
}
//返回当前的毫秒时间戳
function msectime() {
list($msec, $sec) = explode(' ', microtime());
$msectime = (float)sprintf('%.0f', (floatval($msec) + floatval($sec)) * 1000);
return $msectime;
}
\ No newline at end of file
... ...