|
@@ -29,10 +29,10 @@ class SmmAddAccount extends RowAction
|
|
|
public function handle(Request $request)
|
|
|
{
|
|
|
// 获取 parameters 方法传递的参数
|
|
|
- $title = $request->get('title');
|
|
|
- if ($title) {
|
|
|
+ $name = $request->get('name');
|
|
|
+ if ($name) {
|
|
|
//跳转到媒体受权页面
|
|
|
- $ssmService = new SmmService($title);
|
|
|
+ $ssmService = new SmmService($name);
|
|
|
$result = $ssmService->login();
|
|
|
if ($result['status']) {
|
|
|
// 返回 JS 代码触发新窗口打开
|
|
@@ -56,7 +56,7 @@ class SmmAddAccount extends RowAction
|
|
|
{
|
|
|
return [
|
|
|
// 发送当前行 username 字段数据到接口
|
|
|
- 'title' => $this->row->title,
|
|
|
+ 'name' => $this->row->name,
|
|
|
];
|
|
|
}
|
|
|
|