feat: 新增分销分佣结算、商家认证及草稿管理功能,优化界面与版本更新
这个提交包含在:
@@ -3,6 +3,7 @@
|
||||
namespace app\admin\model;
|
||||
|
||||
use think\Model;
|
||||
use app\common\library\FcRelation;
|
||||
|
||||
|
||||
class FcFinanceFlow extends Model
|
||||
@@ -25,8 +26,23 @@ class FcFinanceFlow extends Model
|
||||
|
||||
// 追加属性
|
||||
protected $append = [
|
||||
|
||||
'related_text',
|
||||
];
|
||||
|
||||
public function getRelatedTextAttr($value, $data)
|
||||
{
|
||||
$scene = isset($data['scene']) ? $data['scene'] : '';
|
||||
$id = isset($data['related_id']) ? $data['related_id'] : 0;
|
||||
if (strpos($scene, '提现') !== false) {
|
||||
return FcRelation::withdrawNo($id);
|
||||
}
|
||||
if (strpos($scene, '订单') !== false || strpos($scene, '会员') !== false
|
||||
|| strpos($scene, '发布') !== false || strpos($scene, '充值') !== false) {
|
||||
return FcRelation::orderNo($id);
|
||||
}
|
||||
$no = FcRelation::orderNo($id);
|
||||
return $no !== '' ? $no : FcRelation::withdrawNo($id);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户