|
@@ -98,7 +98,9 @@ class AwardIntegralServices extends BaseServices
|
|
{
|
|
{
|
|
$where = ['uid' => $uid, 'valid' => 1];
|
|
$where = ['uid' => $uid, 'valid' => 1];
|
|
return $this->dao->sum($where, 'order_price', true);
|
|
return $this->dao->sum($where, 'order_price', true);
|
|
- } /**
|
|
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
* 获取单条数据
|
|
* 获取单条数据
|
|
* @return float
|
|
* @return float
|
|
*/
|
|
*/
|
|
@@ -145,7 +147,7 @@ class AwardIntegralServices extends BaseServices
|
|
* @param string $mark
|
|
* @param string $mark
|
|
* @return \crmeb\basic\BaseModel|\think\Model
|
|
* @return \crmeb\basic\BaseModel|\think\Model
|
|
*/
|
|
*/
|
|
- public function incIntegral(int $uid, string $total, float $order_price, int $order_id = 0, string $mark = '', $add_time = 0)
|
|
|
|
|
|
+ public function incIntegral(int $uid, string $total, float $order_price, int $order_id = 0, string $mark = '', $add_time = 0, $pay_type = 'yue')
|
|
{
|
|
{
|
|
// $inc_integral = bcdiv($total, $price, 5);
|
|
// $inc_integral = bcdiv($total, $price, 5);
|
|
//计算释放天数
|
|
//计算释放天数
|
|
@@ -179,6 +181,7 @@ class AwardIntegralServices extends BaseServices
|
|
'sum_price' => $total,
|
|
'sum_price' => $total,
|
|
'order_id' => $order_id,
|
|
'order_id' => $order_id,
|
|
'link_id' => $link_id,
|
|
'link_id' => $link_id,
|
|
|
|
+ 'pay_type' => $pay_type,
|
|
'reorder_count' => $reorder_count,
|
|
'reorder_count' => $reorder_count,
|
|
'mark' => $mark,
|
|
'mark' => $mark,
|
|
'order_price' => $order_price,
|
|
'order_price' => $order_price,
|