Commit 02b580d5 authored by hujun's avatar hujun

name 改id

parent e96459e0
......@@ -203,16 +203,14 @@ class Member extends Basic{
}*/
//客方门店
if (!empty($params['store_name']) && empty($params['referrer_store_name'])) {
$store = new AStore();
$where['b.store_id'] = $store->getStoreKeyById('id', ['store_name'=>$params['store_name']]);
if (!empty($params['store_id']) && empty($params['referrer_store_id'])) {
$where['b.store_id'] = $params['store_id'];
$type = 3;
}
//邀请人门店
if (!empty($params['referrer_store_name']) && empty($params['store_name'])) {
$store = new AStore();
$where['b.store_id'] = $store->getStoreKeyById('id', ['store_name'=>$params['referrer_store_name']]);
if (!empty($params['referrer_store_id']) && empty($params['store_id'])) {
$where['b.store_id'] = $params['referrer_store_id'];
$type = 4;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment