feat: 修改CommissionLogic类以处理错误的spread_uid值
This commit is contained in:
parent
65ca48d516
commit
5fbcad4329
@ -46,7 +46,12 @@ class CommissionLogic extends BaseLogic
|
||||
*/
|
||||
public static function setCook($order, $village_uid = 0, $brigade_uid = 0, $transaction_id = 0)
|
||||
{
|
||||
$user_1 = self::user($order, 0.07, $transaction_id, $order['spread_uid'], 12); //会员、厨师
|
||||
if($order['spread_uid']<=0){
|
||||
$uid=$order['uid'];
|
||||
}else{
|
||||
$uid=$order['spread_uid'];
|
||||
}
|
||||
$user_1 = self::user($order, 0.07, $transaction_id, $uid, 12); //会员、厨师
|
||||
$user_2 = self::user($order, 0.01, $transaction_id, $village_uid, 14); //村长
|
||||
$user_3 = self::user($order, 0.01, $transaction_id, $brigade_uid, 15); //队长
|
||||
$platform = self::platform($order, 0.02, $transaction_id); //平台
|
||||
|
Loading…
x
Reference in New Issue
Block a user