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

支付回调调试

@@ -225,6 +225,8 @@ class PayController extends HomeBaseController @@ -225,6 +225,8 @@ class PayController extends HomeBaseController
225 $money += $val['commission']*$val['number']; 225 $money += $val['commission']*$val['number'];
226 $money_in = $val['commission']*$val['number']; 226 $money_in = $val['commission']*$val['number'];
227 $money_income_teacher['create_time'] = time(); 227 $money_income_teacher['create_time'] = time();
  228 + $money_income_teacher['create_time_detail'] = msectime();
  229 + $money_income_teacher['indent_goods_id'] = $val['id'];
228 $money_income_teacher['money'] = $money_in; 230 $money_income_teacher['money'] = $money_in;
229 $money_income_teacher['type'] = 2; 231 $money_income_teacher['type'] = 2;
230 $money_income_teacher['book_name'] = $val['book_name']; 232 $money_income_teacher['book_name'] = $val['book_name'];
@@ -253,6 +255,7 @@ class PayController extends HomeBaseController @@ -253,6 +255,7 @@ class PayController extends HomeBaseController
253 Db::name('my_user') -> where('uid',$order['salesman_uid']) -> setInc('balance',$balance_salesman); 255 Db::name('my_user') -> where('uid',$order['salesman_uid']) -> setInc('balance',$balance_salesman);
254 //添加业务员的收入记录 256 //添加业务员的收入记录
255 $money_income_salesman_indent['create_time'] = time(); 257 $money_income_salesman_indent['create_time'] = time();
  258 + $money_income_salesman_indent['create_time_detail'] = msectime();
256 $money_income_salesman_indent['uid'] = $order['salesman_uid']; 259 $money_income_salesman_indent['uid'] = $order['salesman_uid'];
257 $money_income_salesman_indent['money'] = $balance_salesman; 260 $money_income_salesman_indent['money'] = $balance_salesman;
258 $money_income_salesman_indent['type'] = 2; 261 $money_income_salesman_indent['type'] = 2;
@@ -1868,3 +1868,10 @@ function createQRcode($savePath, $qrData = 'PHP QR Code :)', $qrLevel = 'L', $qr @@ -1868,3 +1868,10 @@ function createQRcode($savePath, $qrData = 'PHP QR Code :)', $qrLevel = 'L', $qr
1868 else 1868 else
1869 return FALSE; 1869 return FALSE;
1870 } 1870 }
  1871 +
  1872 +//返回当前的毫秒时间戳
  1873 +function msectime() {
  1874 + list($msec, $sec) = explode(' ', microtime());
  1875 + $msectime = (float)sprintf('%.0f', (floatval($msec) + floatval($sec)) * 1000);
  1876 + return $msectime;
  1877 +}