...
|
...
|
@@ -784,10 +784,10 @@ class Index extends Api |
|
|
function CommonProblem()
|
|
|
{
|
|
|
$problem = Db::name('problem')->select();
|
|
|
foreach ($problem as $k => $v) {
|
|
|
$return[$k]['content'] = $v['content'];
|
|
|
$return[$k]['id'] = $v['id'];
|
|
|
}
|
|
|
// foreach ($problem as $k => $v) {
|
|
|
$return['content'] = $problem['content'];
|
|
|
$return['id'] = $problem['id'];
|
|
|
// }
|
|
|
$this->success('成功', $return);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -814,10 +814,12 @@ class Index extends Api |
|
|
function InvoiceInstructions()
|
|
|
{
|
|
|
$invoice = Db::name('invoice')->select();
|
|
|
foreach ($invoice as $k => $v) {
|
|
|
$return[$k]['content'] = $v['content'];
|
|
|
$return[$k]['id'] = $v['id'];
|
|
|
}
|
|
|
// foreach ($invoice as $k => $v) {
|
|
|
// $return[$k]['content'] = $v['content'];
|
|
|
// $return[$k]['id'] = $v['id'];
|
|
|
// }
|
|
|
$return['content'] = $invoice['content'];
|
|
|
$return['id'] = $invoice['id'];
|
|
|
$this->success('成功', $return);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -844,10 +846,13 @@ class Index extends Api |
|
|
function ContactUs()
|
|
|
{
|
|
|
$contact = Db::name('contact')->select();
|
|
|
foreach ($contact as $k => $v) {
|
|
|
$return[$k]['content'] = $v['content'];
|
|
|
$return[$k]['id'] = $v['id'];
|
|
|
}
|
|
|
// foreach ($contact as $k => $v) {
|
|
|
// $return[$k]['content'] = $v['content'];
|
|
|
// $return[$k]['id'] = $v['id'];
|
|
|
// }
|
|
|
|
|
|
$return['content'] = $contact['content'];
|
|
|
$return['id'] = $contact['id'];
|
|
|
$this->success('成功', $return);
|
|
|
}
|
|
|
|
...
|
...
|
|