Commit 3f6325cd by 冷斌

update

parent b815ce6b
......@@ -76,14 +76,15 @@ class PushController extends AdminbaseController {
$touid=preg_replace("/,|,/",",", $touid);
$userIds = explode(',', $touid);
foreach ($userIds as $userId) {
foreach ($userIds as $key => $userId) {
$liang = M("liang")->where([
'name' => $userId,
'state' => 1,
])->find();
var_dump($liang);
if (!empty($liang)) {
$userIds[$key] = $liang['id'];
}
}
var_dump($userIds);
die;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment