|
@@ -32,12 +32,12 @@ class StorePercentageRepository extends BaseRepository
|
|
|
public function __construct(dao $dao)
|
|
|
{
|
|
|
$this->dao = $dao;
|
|
|
- $this->one_register_percentage = 5;
|
|
|
- $this->two_register_percentage = 3;
|
|
|
- $this->one_order_percentage = 8;
|
|
|
- $this->two_order_percentage = 6;
|
|
|
- $this->one_attention_percentage = 9;
|
|
|
- $this->two_attention_percentage = 7;
|
|
|
+ $this->one_register_percentage = systemConfig('reg_first_discount');
|
|
|
+ $this->two_register_percentage = systemConfig('reg_second_discount');
|
|
|
+ $this->one_order_percentage = systemConfig('pay_first_discount');
|
|
|
+ $this->two_order_percentage = systemConfig('pay_second_discount');
|
|
|
+ $this->one_attention_percentage = systemConfig('attention_first_discount');
|
|
|
+ $this->two_attention_percentage = systemConfig('attention_second_discount');
|
|
|
}
|
|
|
//抵扣返利比
|
|
|
public function deduction_percentage($deduction_type,$passivity_user_id,$order_id){
|