添加:商户支持招商员编辑
This commit is contained in:
parent
e716d5dab2
commit
02cd35c95f
|
|
@ -829,7 +829,9 @@ class MerchantRepository extends BaseRepository
|
|||
*/
|
||||
public function adminDetail($id)
|
||||
{
|
||||
$data = $this->dao->getWhere(['mer_id' => $id],'*',['merchantType','merchantCategory'])->toArray();
|
||||
$data = $this->dao->getWhere(['mer_id' => $id],'*',['merchantType','merchantCategory', 'spread' => function ($query) {
|
||||
$query->field('uid,nickname,avatar');
|
||||
}])->toArray();
|
||||
$make = app()->make(MerchantAdminRepository::class);
|
||||
$data['mer_account'] = $make->merIdByAccount($id);
|
||||
$data['mer_password'] = '***********';
|
||||
|
|
|
|||
|
|
@ -209,6 +209,7 @@ class Merchant extends BaseController
|
|||
['platform_commission',0],
|
||||
['avg_consumption',0],
|
||||
'mer_label',
|
||||
'spread_uid'
|
||||
]);
|
||||
$data['mer_label'] = str_replace(',',',',$data['mer_label']);
|
||||
if (!$isUpdate) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue