|
|
@@ -26,6 +26,15 @@ use Yii;
|
|
|
class CustomController extends BaseController
|
|
|
{
|
|
|
|
|
|
+ //客户设置相关 ssh 20250310
|
|
|
+ public function actionSetChange()
|
|
|
+ {
|
|
|
+ $post = Yii::$app->request->post();
|
|
|
+ $shopId = $this->shopId;
|
|
|
+ ShopClass::updateById($shopId, $post);
|
|
|
+ util::complete('修改成功');
|
|
|
+ }
|
|
|
+
|
|
|
//获取收款码 ssh 20240530
|
|
|
public function actionGetGatheringCode()
|
|
|
{
|
|
|
@@ -113,7 +122,7 @@ class CustomController extends BaseController
|
|
|
}
|
|
|
//昱成
|
|
|
if (in_array($this->shopId, [8596])) {
|
|
|
- if (!in_array($this->adminId, [9303,9601])) {
|
|
|
+ if (!in_array($this->adminId, [9303, 9601])) {
|
|
|
util::fail('只能叶荷操作');
|
|
|
}
|
|
|
}
|
|
|
@@ -646,9 +655,9 @@ class CustomController extends BaseController
|
|
|
} else {
|
|
|
$shop = $this->shop;
|
|
|
//如果花大苪,搜索数字还是优先搜索客户名称,因为客户名称经常会编号
|
|
|
- if($shop->id == 8249){
|
|
|
+ if ($shop->id == 8249) {
|
|
|
$where['name'] = ['like', $name];
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
$where['mobile'] = ['like', $name];
|
|
|
}
|
|
|
}
|