|
@@ -166,6 +166,29 @@ class merchant_infoControl extends mbMerchantControl
|
|
|
return self::outsuccess([]);
|
|
|
}
|
|
|
|
|
|
+ public function setcontactOp(){
|
|
|
+ $mchid = $this->mchid();
|
|
|
+ if(!empty($_POST['contact_name']))
|
|
|
+ {
|
|
|
+ $params['contact_name'] = trim($_POST['contact_name']);
|
|
|
+ }
|
|
|
+ if(!empty($_POST['contact_phone']))
|
|
|
+ {
|
|
|
+ $params['contact_phone'] = trim($_POST['contact_phone']);
|
|
|
+ }
|
|
|
+ if(empty($params))
|
|
|
+ {
|
|
|
+ return self::outsuccess([]);
|
|
|
+ }
|
|
|
+ $model_merchant = Model('merchant');
|
|
|
+ $ret = $model_merchant->editMerchant($params, ['mchid' => $mchid]);
|
|
|
+ if ($ret) {
|
|
|
+ return self::outsuccess([]);
|
|
|
+ } else {
|
|
|
+ return self::outerr(errcode::ErrOperation, "系统错误.");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
public function setkeyOp()
|
|
|
{
|
|
|
$mchid = $this->mchid();
|