|
|
|
@ -53,7 +53,6 @@ class Wxserve extends Controller |
|
|
|
|
} |
|
|
|
|
$result = Db::table('yoshop_wxserver_account') |
|
|
|
|
->where($where) |
|
|
|
|
->field(['appid', 'nick_name', 'head_image', 'user_name', 'qrcode_image', 'store_id', 'create_time', 'version']) |
|
|
|
|
->paginate(15); |
|
|
|
|
$list = $result->items(); |
|
|
|
|
$total = $result->total(); |
|
|
|
@ -70,6 +69,9 @@ class Wxserve extends Controller |
|
|
|
|
if (!empty($item['experience_code'])) { |
|
|
|
|
$item['experience_code'] = $this->request->domain(true) . $item['experience_code'] . '?time=' . time(); |
|
|
|
|
} |
|
|
|
|
unset($item['access_token']); |
|
|
|
|
unset($item['refresh_token']); |
|
|
|
|
unset($item['signature']); |
|
|
|
|
} |
|
|
|
|
$store_list = Db::table('yoshop_store') |
|
|
|
|
->whereIn('store_id', $store_ids) |
|
|
|
@ -158,7 +160,24 @@ class Wxserve extends Controller |
|
|
|
|
$obj = new Server(); |
|
|
|
|
$res = $obj->commit($appid, $template_id); |
|
|
|
|
if ($res) { |
|
|
|
|
return $this->renderSuccess([$res]); |
|
|
|
|
return $this->renderSuccess('success'); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return $this->renderError('操作失败'); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @notes:获取版本信息 |
|
|
|
|
* @return Json |
|
|
|
|
* @author: wanghousheng |
|
|
|
|
*/ |
|
|
|
|
public function getVersion(): Json |
|
|
|
|
{ |
|
|
|
|
$appid = $this->request->get('appid'); |
|
|
|
|
if ($appid) { |
|
|
|
|
$obj = new Server(); |
|
|
|
|
if ($obj->getVersioninfo()) { |
|
|
|
|
return $this->renderSuccess('success'); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return $this->renderError('操作失败'); |
|
|
|
|