Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6fe89612
authored
Jun 29, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
数据修改
parent
7d48d62f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
48 deletions
app/Http/Services/DataService.php
app/Http/routes.php
app/Http/Services/DataService.php
View file @
6fe89612
...
...
@@ -245,4 +245,13 @@ class DataService
}
}
}
//修改错误状态
public
function
modifyStatus
()
{
$model
=
new
SupplierChannelModel
();
$model
->
where
(
'status'
,
-
1
)
->
update
([
'status'
=>
1
]);
}
}
\ No newline at end of file
app/Http/routes.php
View file @
6fe89612
...
...
@@ -40,53 +40,7 @@ Route::group(['middleware' => ['web'], 'namespace' => 'Api'], function () {
Route
::
match
([
'get'
,
'post'
],
'/api/supplier_account/{key}'
,
'SupplierAccountApiController@Entrance'
);
});
Route
::
match
([
'get'
,
'post'
],
'/test'
,
function
()
{
$a
=
[
"contact_id"
=>
1717
,
"supplier_id"
=>
12253
,
"supplier_consignee"
=>
""
,
"supplier_telephone"
=>
""
,
"supplier_fax"
=>
""
,
"supplier_qq"
=>
""
,
"supplier_mobile"
=>
""
,
"supplier_email"
=>
""
,
"supplier_position"
=>
""
,
"can_check_uids"
=>
"10105"
,
"add_time"
=>
0
,
"update_time"
=>
0
,
"admin_id"
=>
0
,
];
$b
=
[
"contact_id"
=>
1717
,
"supplier_id"
=>
12253
,
"supplier_consignee"
=>
"延寿观呼吸"
,
"supplier_telephone"
=>
"1221"
,
"supplier_fax"
=>
""
,
"supplier_qq"
=>
""
,
"supplier_mobile"
=>
"18825159814"
,
"supplier_email"
=>
"123@qq.com"
,
"supplier_position"
=>
"测试员"
,
"can_check_uids"
=>
"10105"
,
"add_time"
=>
0
,
"update_time"
=>
1623998098
,
"admin_id"
=>
0
,
];
$diff
=
array_diff
(
$b
,
$a
);
$diff2
=
array_diff
(
$a
,
$b
);
dd
(
$diff
,
$diff2
);
// set_time_limit(0);
// sleep(30);
// echo 123;
$model
=
new
\App\Model\RegionModel
();
$r
=
$model
->
limit
(
10
)
->
get
();
dd
(
$r
);
$service
=
new
\App\Http\Services\DataService
();
// $service->checkSupplierChannelUser();
// $service->removeEmptyContactChannelUser();
// $service->repairChannelUser();
$service
->
exportSuppliers
();
// $service->exportSupplierContact();
// $service->export();
// $service->repairData(10);
// $service->completeContact(10);
$service
->
modifyStatus
();
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment